SharePoint Content Query Web Part Title Field

SharePoint 2013
I have a custom list on another site within SharePoint. How do I bring in all the columns? I see the title field on the Edit Web Part, but no matter how hard I try, I can't get multiple columns to show up.  Some of the Columns I am looking for from
the Custom List:
City
Vendor
Circuit ID
Thanks,
Chris

Amit,
Thanks for the links, but I am still missing something with the coding.  I am following the first link you gave me. 
These are the instructions from the page
In ContentQueryMain.xsl
Locate “ <xsl:template name=”OuterTemplate.CallItemTemplate”> “
Add:
<xsl:template name="OuterTemplate.CallItemTemplate">
<xsl:param name="CurPosition" />
<xsl:param name="LastRow" />
and add:
<xsl:when test="@Style='MyTask'">
<xsl:apply-templates select="." mode="itemstyle">
<xsl:with-param name="CurPos" select="$CurPosition" />
<xsl:with-param name="Last" select="$LastRow" />
</xsl:apply-templates>
</xsl:when>
Search:
<xsl:template name=”OuterTemplate.Body”>
And scroll down to add this line:
<xsl:call-template name="OuterTemplate.CallItemTemplate">
<xsl:with-param name="CurPosition" select="$CurPosition" />
<xsl:with-param name="LastRow" select="$LastRow"/>
</xsl:call-template>
What I don't know is where exactly to add the middle section in my xsl document.  Here is what I think I should have.  And the Circuit list below is another attempt at this too that has been unsuccessful.
<xsl:template name="OuterTemplate.CallItemTemplate">
<xsl:param name="CurPosition" />
<xsl:param name="LastRow" />
<xsl:value-of disable-output-escaping="yes" select="$BeginListItem" />
<xsl:choose>
<xsl:when test="@Style='NewsRollUpItem'">
<xsl:apply-templates select="." mode="itemstyle">
<xsl:with-param name="EditMode" select="$cbq_iseditmode" />
</xsl:apply-templates>
</xsl:when>
<xsl:when test="@Style='NewsBigItem'">
<xsl:apply-templates select="." mode="itemstyle">
<xsl:with-param name="CurPos" select="$CurPosition" />
</xsl:apply-templates>
</xsl:when>
<xsl:when test="@Style='NewsCategoryItem'">
<xsl:apply-templates select="." mode="itemstyle">
<xsl:with-param name="CurPos" select="$CurPosition" />
</xsl:apply-templates>
</xsl:when>
<xsl:when test="@Style='MyTask'">
<xsl:apply-templates select="." mode="itemstyle">
<xsl:with-param name="CurPos" select="$CurPosition" />
<xsl:with-param name="Last" select="$LastRow" />
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="itemstyle">
</xsl:apply-templates>
<xsl:when test="@Style='CircuitList'">
<xsl:apply-templates select="." mode="itemstyle">
<xsl:with-param name="CurPos" select="$CurPosition" />
<xsl:with-param name="Last" select="$LastRow" />
<xsl:with-param name="StartNewGrp" select="$StartNewGroup" />
</xsl:apply-templates>
</xsl:when>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of disable-output-escaping="yes" select="$EndListItem" />
</xsl:template>
I think I am getting close and your help is much appreciated.

Similar Messages

  • 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

  • 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

  • How to hide title of the list on Content Query Web Part?

    I am trying to display the description on content query web part from a list. Even when I leave the Title field blank on "Presentation" section (editing the web part), the title shows up with the link along with the description. Is there any way
    to hide the title or leave it as blank? Any help is highly appreciated.
    Thanks,
    Evilar

    Hi Evilar,
    Thanks for posting your issue, Kindly use the below mentioned CSS Style in ID of table tag to fix this issue
    #hide-title .ms-viewheadertr {
    display: none;
    }OR
    For Content Query Web part (WebPartWPQX) Note; X is a number of your web part.#WebPartWPQX .ms-viewheadertr
      display: none;
      }So only titles of the webpart within the WebPartWPQX will be hided.
    Also, browse below mentioned URL for more details
    http://www.balestra.be/2013/08/hide-column-titles-from-sharepoint-lists-libraries.html
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • 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.

  • 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

  • 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

  • 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>

  • SharePoint 2013 - Content Query Web Part Paging

    Hello All,
    Can somebody tell me how to enable (paging) into the
    content query web part ????
    if somebody have a direct link i will be appreciated 
    Thanks
    Omar Attari

    Hi Omar,
    Below links will show you paging in CQWP, these are for SharePoint 2010 but are still useful for pagination in SharePoint 2013.
    http://blog.mastykarz.nl/sharepoint-2010-content-query-web-part-paging/
    http://blog.mastykarz.nl/paging-content-query-web-part/
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • 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>

  • Pass Content Query Web Part ToolPart Value to XSL

    I have extended the Content Query Web Part by adding a textbox control ToolPart.  This is working, i.e.  I am able to see the control, add a value in the textbox and save it.  Is it possible to pass the value of this ToolPart textbox to the
    xsl file?  I found this article: http://blog.sharepointexperience.com/customitemstyle/ that describes how to first see all fields being passed to the webpart by creating a temporary
    itemstyle with this code: 
    <xsl:for-each select="@*">P:<xsl:value-of select="name()" /></xsl:for-each>
    I believe I next need to modify CommonViewFields of the *.webpart file to include the fields I would like to pass to xsl.  
    My question is how do I know the name of the field SharePoint is using to store the value of the textbox toolpart?  The toolpart textbox is generically named (i.e. _textbox), so I do not think I can derive the the field name from the textbox created
    in code.

    try these links:
    http://blogs.msdn.com/b/ecm/archive/2006/10/25/configuring-and-customizing-the-content-query-web-part.aspx
    http://msdn.microsoft.com/en-us/library/office/bb447557(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/bb850574(v=office.12).aspx
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • 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.

  • Content Query Web Part in SP2013

    Hi All,
    I am exploring SP2013 OOTB Web Parts. I am looking samples / reference for all OOTB Web Parts available or newly introduced in SP 2013.  Can anybody share steps to add and configure Content Query Web Part in SharePoint 2013?
    Thanks,
    Senthil
    Senthil.NKN

    CQWB is supported for Publishing Sites or site having publishing feature turned on, on other it will not work as expected.
    You can add it on the page from ribbon insert web part> from categories select Content Rollup > next pane slect Content Query.
    http://info.axceler.com/Blog/bid/116286/Content-Query-Web-Part-vs-Content-Search-Web-Part
    http://www.cwheeler76.com/Lists/Posts/Post.aspx?List=9a19060b-0efe-4368-8360-b07d23dc5c7b&ID=6&Web=916c3f13-7f62-4b71-b302-6fd9106b4bb2
    here is MSDN to customize it:
    http://msdn.microsoft.com/en-us/library/ff650512.aspx 
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Content Query Web Part filter not returning any results

    This CQWP stopped working after moving a number of files to new locations. It is configured in the following way:
    Source: Show items from the following site and all subsites
    List type: Pages Library
    We want to filter the list by the article date, last 30 days. Without a filter, results are returned. If ANY filtering is applied, NO results are returned, NO error messages.
    I experimented with "Group items by" filter, but it also resulted in no results.
    If I change the Source field to a subfolder, I can return filtered results.
    Any ideas? 

    Make sure that ItemStyle.xslt is working fine, try to change the item style
    for your content query web part, if it shows data then there your custom defined
    item style is not working properly

  • Content query web part

    Can Content Query Web Part collect data from multiple site collections?

    In some cases yes, but its always been problematic due to security boundaries.  In SharePoint 2013 its much better to use the Content Search Web part to aggregate content from multiple site collections.
    https://msdn.microsoft.com/en-us/library/ff647394.aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

Maybe you are looking for

  • Not sure Windows gas recognized iPod Mini

    Running Win XP Home edition and installed the iTunes s/w. Connected the iPod to a USB 2.0 port. Took all night to charge and even in the morning the iPod scren displayed the message Do Not Disconnect, even though the battery indicator was full. One q

  • IPod touch dead after Unknown error 1602 during upgrade to OS 4.02

    Attempted an upgrade to IPod touch OS 4.02 last night. This morning it showed Unknown error 1602. It won't power on. I plug it into either this computer or another (both with latest ITunes) and Windows "One of the USB devices has Malfunctioned, and W

  • DV Stream Export Settings, Locked or Unlocked Audio

    When capturing VHS tapes into Final Cut Express, I always keep my Canopus ADVC110 at the default settings, including locked audio. I don't understand why Final Cut Express' export as DV Stream includes a little box to check or uncheck, for locked or

  • Why does photo shop 9 shutdown with "request runtime to terminate" message?

    How can I correct when my Photoshop 9 shutdowns with "request for Runtime to terminate in an unusual way" message?

  • Maverick lost my Images

    A friend reports that after installing Maverick she has lost access to her images in iPhoto.  How can she get to them without buying an upgrade to iPhoto. Aren't they still on her hard disk? Mary Lou