6 votes
Accepted

Display Template Render HTML in list item

You can use following code in the display template <div title="_#= $htmlEncode(line4.defaultValueRenderer(line4)) =#_" id="_#= line4Id =#_"> _#=STSHtmlDecode(line4.value)=#_ </div> ...
user avatar
  • 28.2k
5 votes
Accepted

Content Query Web Part only displays thumbnail images

Full Image url is available in property EncodedAbsUrl You can change the webpart property and set this.
user avatar
  • 28.2k
5 votes

how to copy files from one document library to another in sharepoint using jsom

function copyFiles(sourceLib, destLib){ var context = new SP.ClientContext.get_current(); var web = context.get_web(); var folderSrc = web.getFolderByServerRelativeUrl(sourceLib); context.load(...
user avatar
  • 30.3k
4 votes
Accepted

How to add JQuery in CQWP web part

Following snippet can be used to reference the jQuery in your XSLT webpart. Inline Script Block: <xsl:text disable-output-escaping="yes"> <![CDATA[ <script type="text/...
user avatar
  • 2,003
4 votes
Accepted

Changing Web Part Query Link Color

You wanna target the specific webpart where you wanna change the link color, otherwise every link on the page will change font color. Use F12 Developer tools to find the ID of the specific webpart ...
user avatar
  • 9,501
4 votes

Can the Content Query Web Part be used to show all tasks marked as Complete during the current week?

Yes you can use CQWP to show the completed tasks through last week by filtering the following: The [Task Status] column equal to Completed Once the task set to completed, the [Modified Date] will be ...
user avatar
3 votes

CQWP: How to count rows per category

I understand this is an older post but I was struggling with this same issue over the past couple days and have found a solution I thought I would share. The trick is in understanding how the CQWP ...
user avatar
3 votes

Blog Feed on Home Page

Modifying the underlying XSL files worked in SP2010: http://blog.kappasolutions.ca/blog/post/2010/09/12/How-to-Display-HTML-in-Content-Query-Web-Part.aspx Specifically, setting disable-output-...
user avatar
  • 33
3 votes

Display Web-part data on all pages

From MSDN for SharePoint 2013. If you want complete control over how a Web Part appears on your site, and if you want that Web Part to appear on all pages of a certain type, add the Web Part ...
user avatar
3 votes
Accepted

How to add a content query web part into Page layout?

In SharePoint Designer you can edit a page layout and create a CQWP. If you need to customise the CQWP, you probably need to export it, edit it, and import it again. But unlike the SharePoint browser ...
user avatar
  • 8,722
3 votes
Accepted

Changing background color on content query web-part?

Alternative to editing your xsl style sheets you can try this: Add the code below to a script editor web part or save this in a text file and use a content editor web part to load that file on your ...
user avatar
  • 1,765
3 votes

"some properties in this Web Part are not available because they are configured to have fixed values"

When you use QueryOverride, you can no longer modify all query related values using a browser. So you will need to fix the query, reupload the webpart, and repeat those two until you have a working ...
user avatar
  • 8,197
3 votes

CQWP error:- The web part references an untrusted XSL file

You could export the content query web part and open it in notepad. Then define the MainXslLink and ItemXslLink property values as "/rootsite/subsite/style library/xsl style sheets/Xslfile name.xsl" ...
user avatar
  • 2,946
3 votes
Accepted

Selective can view content of cqwp

You can turn audience targeting on the list. Go back to each of the files and target them to the appropriate audience and then just use one webpart that honors the audience targeting. You can better ...
user avatar
  • 7,678
2 votes

Content Query Web Part - Custom fields

We can use CQWP to show it as ListView, Refer the below steps: Edit ContentQueryMain.xsl file Search <xsl:template name="OuterTemplate.Body"> Change it as: <xsl:call-template name="...
user avatar
2 votes

Content Query Web Part - Multiple (repeated) additional filters

Use ; instead of , in your query and also delimit the last column too with ;. It will help you solve the problem.
user avatar
  • 4,466
2 votes

Dynamic order Numbering based on the view in sharepoint library 2010?

You can use SPD. On a page add the list view, then create a column and insert the following code: <xsl:value-of select="count($thisNode/../*[not($thisNode/@ID=preceding-sibling::*/@ID)])" /> ...
user avatar
2 votes
Accepted

Add query web part to display form to show related items in another list?

Yes, you can do this by SharePoint Designer. Add a lookup column to the Orders list, which will refer to the Customers list Open Customers list in SharePoint Designer Edit Customers Display Form, ...
user avatar
  • 616
2 votes
Accepted

CQWP ItemStyle Divs are being nested

This makes no sense to me but... It appears that SharePoint XSLT for CQWP doesn't like empty elements. When I have an empty div it pulls the next element in the DOM into the parent of the empty ...
user avatar
2 votes

Blog Feed on Home Page

How to render Blogs Body column as Html in CQWP: 1) Open /Style Library/XSL Style Sheets/ItemStyle.xsl file 2) Locate Item Style template (in your example Xsl template named Default) and replace ...
user avatar
2 votes

How do I show a single event on a page?

I would use the Content Search Web Part. Using search is better than querying the list directly. Here is an example of setting up a Content Search Web Part Then you can set the search query to filter ...
user avatar
2 votes
Accepted

display Webpart Title on 2 lines

If you can grab the offending NOBR element via JavaScript, you can then hide it and insert a less offensive element adjacent to it with the same (or modified) HTML content. // 1. grab the NOBR tag ...
user avatar
  • 1,612
2 votes
Accepted

List Throttling Threshold Workaround for CQWP?

You can use the Content by Search Web Part (CSWP), which uses the search engine instead and it is not affected by the List View Threshold. There are many examples if you google for this, such as Roll ...
user avatar
  • 1,305
2 votes
Accepted

Sharepoint 2013 CQWP - Filter by Approval Status

I finally found the way to do it myself. I'm posting here my discovery, but be careful, you have no warranties it will work on YOUR environment or if there is some migration, we have no warranty it ...
user avatar
  • 572
2 votes
Accepted

How can I remove excess code in Content Query Web Part Body text on Home page?

Or you can just add disable-output-escaping="yes" to the xsl value in itemstyle.xsl to get the html to render correctly. For example: xsl:value-of select="substring(@Description,1,255)" disable-...
user avatar
  • 9,501
2 votes
Accepted

How to collect information from Subsites?

Blogs and Comments are two different lists in the Subsites. So the CQWP only gets you the Blogs You could try quering on a common contenttype to get everything.. but it is going to be some hairy ...
user avatar
2 votes
Accepted

Apply JSLink client side rendering to Content Query Web Part

Client Side Rendering can only be done on LVWP (List View WebParts) The CQWP (Content Query WebPart) is styled with XSLT: https://sharepoint.stackexchange.com/questions/tagged/xslt-list-view-web-part
user avatar
2 votes
Accepted

I cannot see site column in Content Query Filters

You can use custom columns in CQWP, it's just that you can't use Multiple User column for filter. You can confirm this by creating a single user column and it will appear in the selection box. ...
user avatar
2 votes

Aggregated view for Display Form for SharePoint 2013

Just go to your display form, edit the page and add the listview webpart of the other list you want to get data from. Edit the properties of this listview and add a webpart connection that connects ...
user avatar
2 votes

Viewing List Data via CQWP, need XSLT to modify the content look in CQWP Webpart

Without XSLT you cannot change the view of list in Content Query Web Part. XSLT don't include any tough scripting and coding it is just formatting like table tag. Please refer this link to get more ...
user avatar
  • 1,356

Only top scored, non community-wiki answers of a minimum length are eligible