6

You can use PageQueryString and/or PageFieldValue in the CQWP. Here is an exmaple


6

You can use following code in the display template <div title="_#= $htmlEncode(line4.defaultValueRenderer(line4)) =#_" id="_#= line4Id =#_"> _#=STSHtmlDecode(line4.value)=#_ </div> Source - https://ingessharepointnotes.wordpress.com/2014/03/04/sharepoint-display-templates-display-enhanced-rich-text-field/ Another example var desc = $...


5

Content By Query Web Part is XSL based, by default, Title, Description, ImageUrl, and LinkUrl columns (if present) of the items that the query returns are rendered. The Web Part renders the ImageUrl column and the LinkUrl column as an image and as a hyperlink, respectively. If you want to query for custom content types and render specific columns from ...


5

Full Image url is available in property EncodedAbsUrl You can change the webpart property and set this.


4

Please try this: http://www.gloiretech.com/sharepoint-tools/content-slider-sharepoint/


4

This happens when path of your xsl used by CQWP for rendering items is referring the source site collection from which the content was migrated. You may want to open the webpart file and make sure you are using relative path so that it always refer to same site collection in which it is being used.


4

+1 @james Here's the documentation to the SPServices library. http://spservices.codeplex.com/wikipage?title=Lists&referringTitle=%24%28%29.SPServices There isn't an example on there, but I'll post one here: $().SPServices({ operation: "GetListCollection", completefunc: function( xData, Status ) { console.log( Status )...


4

See if this helps: <xsl:for-each select="rows\row"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="{@FileURL}" /> </xsl:attribute> <xsl:attribute name=...


4

A screenshot for SP 2010 may say more than 1000 words in the linked article about SP 2007.


4

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/javascript"> (your JavaScript code here) </script> ]]> </xsl:text> Script Reference Block: <xsl:text disable-...


4

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 you wanna change the link text for. Insert the name/ID instead of my example (#WebPartWPQ5) and then use the CSS i provided below (SP2013). <style type="text/...


4

function copyFiles(sourceLib, destLib){ var context = new SP.ClientContext.get_current(); var web = context.get_web(); var folderSrc = web.getFolderByServerRelativeUrl(sourceLib); context.load(folderSrc,'Files'); context.executeQueryAsync( function() { console.log("Got the source folder right here!"); var files = folderSrc.get_files(); ...


4

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 changed to the current date, so you can filter the updated tasks within last week as the following The [Modified Date] Greater Than or Equal to [Today]-7 The ...


3

The CQWP renders the datatable columns as attributes of the row element so you would use the @ symbol to reference them in your XSLT as opposed to parameters or variables referenced using the $ symbol and elements referenced without any symbol


3

Content Editor WebPart is your best bet. SharePoint Tutorial: How to work with the content editor web part


3

Just add the anchor tag with a dynamic link to the bottom of your itemstyle xsl and then wrap it with an xsl:if statement to check the position to see if the last list item is last. <xsl:if test="position() =last()"> <a href="link.aspx">View all items</a> </xsl:if> If you want to make the href dynamic, find a source for the link ...


3

The ContentQueryMain.xsl and ItemStyle.xsl are located in the Style Library in the RootSite of the sitecollection. Do not update the default styles defined is those files (others may depend on it). Rather add a new style to the file, or copy the files and update the references in the CQWP to the new XSL-files. To do this: export the webpart and update the ...


3

It migth be more efficient to use Camlex.NET. It more understandable for new to SharePoint developers. Stramit SharePoint Caml Viewer migth be helpfull if you tried to write caml by hands, nor using UI or C# code.


3

This is not a CSS issue. I don't know how to fix it properly, but I can add this information: Issue occurs in IE 9 with hardware acceleration turned on for any SharePoint 2010 page with a content query web part added. Affects SharePoint menus (Site Actions) and some other forms of drop-down menu add ins. The reason the IE7 mode etc. works, you're then ...


3

Another option is to use the JavaScript Client Object Model: ExecuteOrDelayUntilScriptLoaded(function(){ var clientContext = new SP.ClientContext.get_current(); var web = clientContext.get_web(); var lists = web.get_lists(); clientContext.load(lists); clientContext.executeQueryAsync(Function.createDelegate(this, this....


3

About Social Comments In comparison to page fields (Page Content, Title, Page Image and etc.) that are inserted into the “slots” of the page layout and associated with the content type of the publishing page, social comments are stored separately. Social comments are stored in separate DB and the comment entry is associated by the page Url on which ...


3

I was able to do it by modifying the ContentQueryMain.xsl file to insert non-repeating markup before and after content query as shown here. http://blog.mastykarz.nl/wrapping-contents-content-query-web-part-additional-markup/


3

The CQWP certainly should do what you are looking for. My first suggestion is to check your settings. When I do this I usually sort by Modified date in descending order so the most recent are at the top. I then set a maximum number of items - maybe 10 or 15 so there are not too many. If you need to display more details then you will need to customise the ...


3

You can use the XSLT <xsl:sort> element to customize your sort order. https://sites.google.com/site/icsharepoint2010/xslt/sorting-in-xslt <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text"/> <xsl:template match="employees"> <xsl:apply-templates> <xsl:...


3

You will need to create some custom XSLT which will allow you to present whatever fields you like. If you need a steer on this there are a couple of blog posts which may help - http://paylord.wordpress.com/2012/09/28/cqwp-and-xslt-part-1/


3

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-escaping to yes in ItemStyle.xsl. ie. <xsl:value-of select="@Something" disable-output-escaping="yes" /> I haven't tried it in 2013 yet, but this article ...


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