Content Query Web Part (CQWP) displaying ASCII code for the colon portion of a time

I'm having an issue with a CQWP displaying : for the colon portion of a time.  For example, instead of 6:30, the CQWP shows 6:30. 
I checked our encoding which is set to UTF-8.  We also have a custom style on the CQWP and I've made sure that our custom itemstyle.xsl file has the disable-output-escaping property set to yes. 
When I look at the list I'm querying from, the ascii code is not showing in there; it's displaying properly as 6:30.  I tried to flip this by replacing the colon with the ascii symbol in the list but it still showed the ascii code on the CQWP.
Any ideas?

Hi Cameron,  thanks for your reply.  The solution in the blog would work for an area that is only for date or time.  Unfortunately, this particular section of my CQWP is more than just a time; it's the summary of a news article--
which may or may not contain a time depending on what the news article is about. 
In further testing I have also noticed, when viewing the source code, that the colon is represented as
: which tells me that the ampersand of the ascii code for the colon is also being convertied to ascii (in a sort-of double
conversion situation.)  This isn't something I've ever seen before.

Similar Messages

  • Content query web part is not working after chaning the DNS entry

    Hi all,
    We have a content query web part in the sharepoint site but it is not working after changing the DNS Entry for the web site ipaddress from one server to other . But it is working fine on the server, if we try to access the site from other system content
    quey server its not working fine and its giving error message as bellow.
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Can anyone help me to fix this issue please.

    I have custom XSLT . But it is working fine before changing the dns entry as soon as we change the DNS entry the content quey web part is not working. I tried to delete the content query web part and add it once again to the page, As soon as content query
    web part is added to the page the fallowing error message is displayed.
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Can anyone help me to fix this issue please.

  • Can a Content Query Web Part (CQWP) be used to filter content based upon a substring of a variable

    Folks, I'm a newbie to this forum and to SHarepoint in general - so please be gentle :-)
    I'm using Sharepoint 2010 and have content in lists which I want to display based upon certain user attribtes. For example I have a sharepoint LINKS list which contains entries for vaious applications (I'm using the LINKS list as an example, however I'd
    like to apply it to many libraries/lists).
    Name:UK Intranet - URL:http:UKintranet.com - Description: UK
    Name:USA Intranet - http:USintranet.com - Description: USA
    Name:UK Contacts list - http:UKPhones.com - Description: UK
    Name:USA Contacts list - http:USAPhones.com - Description: USA
    My users are split accross AD domains, one for each called UK and others in a domain called USA 
    What I would like to do in a content query is display items where the users domain (ie UK or USA) is contained in the Description field.
    So a CQWP which includes something like "filter when Decription = &userdomian"
    I should also add that I am only using basic page editing in a browser and have no access to Sharepoint Designer
    Can this be done?
    BTW - I know this is a little like Audience Targetting, however I don't have rights to setup audiences and as the information about the audience is already available in the users domain I simply wanted to reuse that.

    Hi Peter,
    According to your description, my understanding is that you want to filter items based on the current user’s domain.
    Whether you could access Central Administrator, and create a new user property in User Profile Service Application->Manage User Properties. If yes, create a new user property (assuming it is called ‘Domain’)to store the users’ domain information. If not,
    please choice a existing user property that you don’t use to store the domain information, like Department.
    Then do as the followings:
    Open the page that you want to display the list.
    Eidt the page and insert the list into the page.
    Insert a Current User Filter web part(Insert->Web Part->Filters->Current User Filter) into the page.
    Then edit the Current User Filter web part, and select value to provide: SharePoint profile value for current user: Department(or Doamin).
    Connect the Current User Filter web part to the list: Connections->Set filter values to->the list.
    Connection Type: Get Filter Values from, click Configure.
    Consumer Field Name:Description, click Finish.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Content Query Web Part not displaying fields

    I am using a CQWP to show contents of a document center library in a sibling site.  I must be doing something wrong in the WP configuratin because the rendered list on the page only shows the Title field.  I have specified the style type to
    be Title, Description, and document icon. In the Fields to Display, in the Description field, I entered Description because that is the name of my column. But it is not showing up.
    Can anyone tell me what I am doing wrong?
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

    I created another test library in the document center, and another test CQWP at another sibling site and got the description to come in fine.  I went back to the original document library created by default when I created the Document Center. 
    I noticed that there are to Description columns - one is a single line text field, the other is a multi-line text field. however, only the single line Description field is what is available to users when they upload a document or edit the properties on an
    existing document item.  I tried to delete one column or the other, but there is no delete option. How do I delete a column?
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
    to include the tabulated view for the content query.
    However the way it is displayed is such that only the content is displayed.
    As i am using a tabular view wto display the data, i want to display their field names as well.

    Hi  ,
    According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
    For your issue, please refer to the code as below:
    <xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
    <html>
    <table width="100%">
    <xsl:if test="count(preceding-sibling::*)=0">
    <tr>
    <td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
    <td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
    <td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
    </tr>
    </xsl:if>
    <tr>
    <td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
    <td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
    <td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
    </tr>
    </table>
    </html>
    </xsl:template>
    For more information, please have a look at the blog:
    http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
    http://msdn.microsoft.com/en-us/library/ms497457.aspx
    http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
    http://blog.sharepointexperience.com/customitemstyle/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Display Custom Fields in a SharePoint 2010 Content Query Web Part?

    Using SharePoint 2010, Having Custom List With 4 Columns, Now I am Using Content Query Web-part To Display List Data ,But Currently It Display Only First Column, SO How to Display Custom Fields in a SharePoint 2010 Content By Query Web Part
    AKshay Nangare

    Hi,
    By default CQWP shows only one column. However, if you want to show more than one column, then CQWP needs to be customized. The property which you are looking for is CommonViewFields. It is used to specify the additional fields that you want to display in
    the Web Part. See this for more information:
    https://msdn.microsoft.com/en-us/library/ms497457%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Content Query Web Part - Custom ItemStyle.xsl to display image with hyperlink

    I don't have access to InfoPath or SharePoint Designer to edit the ItemStyle.xsl. So any solution suggested is preffered to be a manual change to ItemStyle.xsl
    I use Content Query Web part (in the main site) to list all the Wikis created in the a sub-site. The idea is to link each wiki to its printable version stored elsewhere.
    The wiki has custom column say "Link" that hold hyperlinks to the printable version.
    I want to create a column in the content query web part that displays an image (same image for all wikis stored in the site Assets) but on clicking takes me to the printable version page.
    I got the image displayed but the hyperlink takes me to the location where the image is stored and not to the printable version page.
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="PDFLink">
    <xsl:value-of select="@Link"/>
    </xsl:variable>
    <!-- Image to the hyperlink-->
    <a href="{$PDFLink}">
    <img src="../Images/Icon.jpg"/>
    </a>

    Hyperlink column is treated a little different. The field, by default, puts the URL and then the friendly name concatenated together, but separated by a comma. So I created two variables one that pulls everythng before the comma and the other after. Then
    the html "a" tag looks like this:
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="ActualLink" select="substring-before(@LinkColName,',')"/>
    <xsl:variable name="FriendlyName" select="substring-after(@LinkColName,',')"/>
    <!-- Image to the hyperlink-->
    <a href="{$ActualLink}"><xsl:value-of select="$LinkColumnName"/>
    <img src="/Images/Icon.jpg">
    </a>

  • Content Query Web Part hasn't data in the first step.

    I have a problem with the deployment of Content Query Web Part programmatically.
    When I do the deployment, the Web Part appears in the required page with the correct configuration, but the problem is that it hasn't data. If I edit the page and I do click in "Apply" button of the Web Part, the data appears perfectly.
    Do you know anything about this?
    Thanks !!

    Hi Magnus, thanks for your quick response.
    I'm deploying and adding this webpart in code-behind 
    ContentByQueryWebPart cqwp = new ContentByQueryWebPart();
    cqwp.MainXslLink = "/Style Library/XSL Style Sheets/ContentQueryMain.xsl";
    cqwp.Title = "Recently Documents";
    cqwp.ItemStyle = "WithDocIcon";
    cqwp.ChromeType = PartChromeType.Default;
    cqwp.ItemLimit = 15;
    cqwp.WebUrl = currentWeb.ServerRelativeUrl;
    cqwp.SortBy = "Modified";
    cqwp.SortByDirection = ContentByQueryWebPart.SortDirection.Desc;
    cqwp.BaseType = "101";
    cqwp.UseCache = false;
    cqwp.AsyncRefresh = true;
    cqwp.AutoRefresh = true;
    PublishingWeb pweb = PublishingWeb.GetPublishingWeb(web);
    cqwp.Update(pweb);
    webPartManager.AddWebPart(cqwp, "Left", 0);
    webPartManager.SaveChanges(cqwp);
    Regards,

  • Content Query Web Part - Sort Libraries by Name

    Hello,
    I created a Content Query Web Part that lists all Libraries under the current site (preferably it would be better to list only the Libraries on the current site but I couldn't manage to do it). However, the libraries are not sorted in any way.
    The query is the following:
    Path:{Site.URL}* contentclass:STS_List_DocumentLibrary  -Title:Assets  -Title:Templates 
    Whatever I select on the Sorting tab nothing happens, the results are displayed still in the same way, please see attached screenshot.
    PS: I also want to do the same things to lists the subsites - which I also couldn't do to list only one level *Below* the current site - any tips appreciated.
    path:"https://sharepointsite.com/sites/Test/Acquisitions/"  contentclass:STS_Web  Title<>Acquisitions

    Hi,
    Did you use the content search web part?
    I tried to reproduce the issue in my environment, it works well without any issue.
    Did you set the sort by Title in the SORTING section?
    I set the query just like yours:Path:{Site.URL}* contentclass:STS_List_DocumentLibrary  Title:docs  -Title:incoming 
    Then set the sort by Title in the sorting section.
    You can check whether you have configured the SORTING option, then check whether it works.
    Note: By default, the Title property is not enabled the sort option, you can configure it in
    Central Administration->Manage Service Application->Search Service Application->Search Schma
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Issues with Content Query Web Part List Override

    I have modified a Content Query web part to show all checked out documents across my site collection. I used this property to get the checked out documents:
    <property name="QueryOverride" type="string"><![CDATA[<Where><Geq><FieldRef Name="CheckoutUser" LookupId="TRUE"/><Value Type="int">0</Value></Geq></Where><OrderBy><FieldRef
    Name="CheckoutUser"/></OrderBy>]]></property>
    It fails when trying to view across the site collection and gives this error:
    "There is a problem with the query that this webpart is issuing. Check the configuration of this webpart and try again."
    However, it works for sub-sites.
    Thus, I followed this blog to modify the ListsOverride property: http://geekswithblogs.net/simonh/archive/2013/05/08/increasing-the-number-of-lists-a-content-query-webpart-can.aspx I modified the property to:
    <property name="ListsOverride" type="string"><![CDATA[<Lists Servertemplate="101" MaxListLimit="2000"></Lists>]]></property>
    But now I am getting this response:
    This query has returned no items. To configure the query for this Web Part, open the tool pane.
    Can anyone tell me what the problem is? I cannot find anything in the ULS logs that would indicate a timeout from the SQL server or any other type of error.

    Hi Susan,
    According to your description, my understanding is that there is something wrong when you override content query web part property.
    As you said, the query override works for sub-site, I suggest you check the data in the parent site whether the data is valid.
    Here are some detailed articles for your reference:
    http://rmanimaran.wordpress.com/2010/10/19/getfind-all-checked-out-documents-from-a-document-library-using-caml/
    http://msdn.microsoft.com/en-us/library/office/aa981241(v=office.14).aspx
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • How to display names without file extension in Content Query Web Part in SharePoint 2010

    I try to display names in Content Query Web Part  but it shows file extension. I cannot find a way in CQWP editor that can exclude file extension.  Is there a way to display names excluding file extensions thru settings in the CQWP editor?
    I have to edit the code in SharePoint Designer, right?
    Thanks in advance for any tips!

    In the file ContentQueryMain you have already a function to get the file without extension.
    So we just can use this:
    <xsl:call-template name="OuterTemplate.GetFileNameWithoutExtension">
    <xsl:with-param name="input" select="$DisplayTitle" />
    </xsl:call-template>

  • How to display all the surveys using content query web part

    Can you please tell me how to display all the surveys using content query web part in more details? I also created a subsite and multiple surveys in that site. Then, I inserted a Content Query Web Part and select the List Type to be "Survey",
    however, it returned nothing. Did I miss anything?

    Hi,
    OOTB Survey List does not contain any
    Content Types and it has the following structure:
    Response entry is represented by
    List Item
    Response entry consist of questions and answers, where Question correspond to
    Field and Answer to Item value respectively.
    For querying Survey List via CQWP  the following properties could be used
    BaseType 
    <Lists BaseType="4">
    ServerTemplate
    <Lists ServerTemplate="102">
    Example
    To retrieve all the responses from Survey lists, specify List Type property as shown on picture
    Reference:
    http://stackoverflow.com/questions/17280778/display-all-surveys-using-content-query-web-part
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Content Query Web Part will not display all fields.

    I would love some assistance on this.  When I choose fields to display in the Web Part they do not appear.  And I should say the the article "How to: Display Custom Fields in a Content Query Web Part" on the Developer Network is
    a great start but it is only applicable to '07 and '10.  Where is the detailed info for SP 2013??

    Hi,
    According to your description, my understanding is that you want to display custom columns in Content Query web part in SharePoint 2013.
    Per my knowledge, the method for SharePoint 2013 to display custom columns in Content Query web part is the same with SharePoint 2010.
    The method in the link below is also can be used for SharePoint 2013:
    http://msdn.microsoft.com/en-us/library/ms497457(v=office.14).ASPX
    Do you encounter any issue when customizing in in a Content Query Web Part?
    Here are some links about customizing the ItemStyle.xsl to display custom columns in Content Query web part in SharePoint 2013 for you to take a look:
    http://prafulgoyal.blogspot.in/2013/04/sharepoint-content-query-webpart-oob.html
    http://social.msdn.microsoft.com/Forums/en-US/49739730-47c1-43df-9d0e-ad506e6ca31b/display-multiple-columns-in-content-query-webpart
    http://social.msdn.microsoft.com/Forums/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns?forum=sharepointgeneral
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Content Query Web Part Fields Documentation?

    Hello community, I have a question about content query web part. I want to use it to display information from a custom large list with more than just the title and description columns that the default allows. For example, I have a list with 50k items in
    it and 20 columns. I want to be able to create multiple CQWPs to display select data and select columns for the appropriate users.
    I am looking for good accurate documentation to help implement this. I seem to be finding multiple methods that people are using and I am not sure what is best in terms of performance - which is ideally why I want to use the CQWP in the first place (prevent
    people from loading the 50k item list over and over).
    By default, the content query web part looks great for displaying links to specific documents, but I am hoping that it can be configured to essentially create a mini-list of the large list.
    EDIT: Forgot to mention that this is with a custom content type and all custom fields.

    Figured this out a few days ago. Found that there really wasn't any documentation that helped me tremendously or explained in a way that I could understand it completely (user error??). There was one video that I found on YouTube that helped considerably.
    I took some of what he did, but found that I could accomplish what he did with less than what he showed.
    Pretty sure that by now everyone knows how to do this, but anyway, here is what I did:
    I just exported a content query web part (after adding a blank one to a page), edited the CommonViewFields and the ItemXslLink (pointing to a copy of the original ItemStyle.xsl). Rename the copy of the file to whatever you want and then SAVE it locally (you
    will upload it later to the Web Part Gallery or directly to the page for use when complete).
    Create a new template at the bottom of the copy of the ItemStyle.xsl file (similar to all of the other templates that you see throughout the page).
    Then make sure that the name that you selected for the name attribute of the template tag is exactly the same as the name that you will put in single quotes in the match attribute. Again you can use the existing templates on the page as a guide.
    Copy and paste some of the existing variables to your template (add them between the opening and closing template tags). For instance, I added the 'SafeLinkUrl' variable, which I copied from above, so that I could have it render when I select my template
    when I configure the web part on the page.
    Then you can create new fields utilizing the
    <xsl:value-of>
    tags. Utilize the select attribute to get the field name that you want; use the examples in the page to help guide you. You can use plain old HTML to style your content. For example, I created a table to display my results.
    The CommonViewFields property from the .webpart file should have the field names that you want to add in them already (because you edited that earlier).
    Add the new CQWP that you just modified to the page that you want and select the template name from the drop-down to get the template that you created. You should then see your new fields there too!
    This worked for me. If anyone needs clarification on what I wrote, let me know. Anyway, I know that I am a few years too late, but whatever - hopefully this can help someone else.

  • Duplicate groups in Content Query Web Part in SharePoint 2010

    Hello,
    I'm facing one weird issue in CQWP. I've a document library in SharePoint 2010 site where I have 2 columns - Title and Document Type. The column 'Document Type' is a Single line of Text column and mandatory. Users have entered bunch of documents in this
    library by populating the metadata.
    On one wiki page I have a CQWP where I'm showing the documents of this library grouped by 'Document Type'. The problem I am facing is that some documents are showing in different columns even though their 'Document Type' value is exactly same. Please see
    below screenshot:
    You can see that the documents under 'Industry Group Publications' are showing in 3 different columns, why?
    My CQWP settings are:
    Presentation: Number of columns to be shown: 5 (I've changed it to 3 also, but the same result)
    Group items by: Document Type and sort order is Ascending (I've tried changing sort order as well, same result)
    Limit number of items to display: This checkbox is unchecked (unlimited)
    It's not just one case. I've seen this issue on other sites as well where same 'Group by' column value is being shown in different column rather than under same column while values are EXACTLY same.
    Has anybody else faced this issue? What's the reason and solution to this problem?
    Thanks in advance!
    --Ashish

    Hi Ashish,
    I tried to reproduce the issue in my environment. I created a content query web part displaying one library documents. The library has two columns, title and document type. However, document type is a single text column you need to manually write content
    into.
    I set the web part to group items by document type and left other settings to be by default. It worked as expected. I’d like to know if there is any difference from your situation, especially for the document type column so I can reproduce the issue from
    my side.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Problem with wpa_supplicant unstable

    Hello, I have some problems using wpa_supplicant. I didn't really noticed since when, because my router wasn't working for some time, but I suspect it was the upgrade to the kernel 2.6.32. Anyway, my connection is too unstable, very slow most of time

  • Errors on creating new Topic in RH9 (9.02 Patch)

    Have found that when creating a new topic in RH9 project that on building the project errors 3018 and 3111 are being presented. Appears that the error is being caused by the placement of the Page Break in the word document at the commencement of the

  • Help with Datatip Not showing on 2 different charts at the same time

    What's up guys?  I am building a massive application and came across an issue. I was able to create a smaller flex application that recreate the problem. Basically its about the datatip. Let's say you have a Main application with tab navigation that

  • Is there a way to change a slide's resolution?

    I've had to download a number of pictures from the internet as part of my slide presentation. I blow them up using the inspector so they'll fill the screen, but of course they look very pixellated. Is there a way I can change that? Thanks for any adv

  • IBooks and PDF - Problems

    some PDFs which are displayed in iTunes (and work correctly in iTunes) are shown on the iPad as blank sheets - i think it is a problem of ibooks