Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
11

You can use ParameterBindings to this purpose. <ParameterBinding Name="Language" Location="Resource(wss,language_value)" /> This will return "en-us" for English locale in xsl:param "Language". Also, you can pass whole resource values this way. You can read more about this in Stefan Stanev's blog: http://stefan-stanev-sharepoint-blog.blogspot.com/...


7

You'll need to make sure that the xsl:stylesheet declares the ddwrt namespace. To do this, you'll need to add this to your xsl:stylesheet declaration if it isn't there already, though in your case we know it isn't because you're getting an error: xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" You can see more details on this idea ...


6

After looking for ages for the answer to this I stumbled on it minutes after posting this question... Anyway, the answer is here: http://blogs.msdn.com/b/joshuag/archive/2009/03/25/custom-date-formats-in-sharepoint-xsl.aspx Summary: Reference the ddwrt namespace at the top of the itemstyle.xls xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/...


6

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


5

Your quick question deserves a quick answer: Yes! Bullet images are defined in CSS, so you can override the formatting by adding your own CSS for the elements you want to change.


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.


5

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 = $...


4

Don't be afraid of XSLT. This is going to give you a tremendous amount of power without having to develop or deploy anything in return for a little effort to understand it. I always recommend starting with an identity transform so that you can see the XML that is coming in, and then start adding templates to process the nodes you are interested in. Visual ...


4

The Content Query web part is included in the SharePoint Standard SKU, which implies MOSS for the 2007 version of the product. | 2007| 2010| ----------|-----|-----| Standard | Y | Y | ----------|-----|-----| Foundation| N | N | I've tried to make a complete reference table of all the SharePoint 2010 out-of-the-box web parts.


4

To add your configured web part to the web part gallery, go to Site Settings and then to the web part gallery. You can then upload your .webpart file - the gallery behaves like a normal document library. This is fine for one-off or occasional use. To do this in a repeatable way you would need to develop a feature, to deploy the webpart definition to the ...


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

In 2007, when you select a coulmn to filter on that is a person/group field, there is an option to filter by Me. This works the same as any regular list/library where you have views filtered by the current logged in user. The CQWP works the same way. I assume there is something similar in 2010, I don't have a farm to view that in specficly at this time.


3

Ensure the URL column is created as a hyperlink type, not as a string, and then populated with a URL.


3

Check out this article. It shows you how to replace the fields you want to render, using the "fields to display" section. Another article from MSDN here and here.


3

I was able to get this working by changing the DataMappings, and DataMappingViewFields. The values in these fields are very sensitive and a space or semi-colon in the wrong place will break it. I've posted what worked below, hopefully this will save someone else two days of misery! <property name="DataMappings" type="string">Title:{fa564e0f-0c70-4ab9-...


3

The CQWP layout can be changed to your needs by customizing the xsl the webpart uses. An explanation can be found here: http://msdn.microsoft.com/en-us/library/bb447557.aspx Some more background info can be found here: http://blogs.msdn.com/b/ecm/archive/2010/05/14/what-s-new-with-the-content-query-web-part.aspx


3

You have to disable output escaping by adding disable-output-escaping="yes" to the element. It is covered in this post on MSDN. http://blogs.msdn.com/b/ben_hickman/archive/2009/05/22/content-query-web-part-example.aspx


3

One way to fix this was to append a class on a tag surrounding the address, and then add display:inline to the nested DIV: .test div { Display:inline; } <DIV class="test">address: <DIV>123 main st.</DIV></DIV>


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