Hot answers tagged

11

The Publishing Features need to be active on the site collection for the web part to appear. It can be activated from the Site Settings, Site collection features screen.


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


6

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


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

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


5

I'm guessing this is SP2013, as I myself have only encountered this in SP2013. My personal explanation to this: SharePoint 2013 Content By Query web part has a minor bug in its early releases. When returning no items it accidentally breaks the HTML structure of the page. My solution: Open the ContentQueryMain.xsl in SharePoint Designer. Find the XSL ...


5

You'll need to use an additional XSL schema called ddwrt. Here is a blog with a good and simple walk-through <xsl:value-of select="@ArticleStartDate"/> You get back a pretty nasty looking result 2009-03-23 00:00:00 However if you use the “FormatDate” function, you can make this look a lot better. <xsl:value-of ...


4

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


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


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


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


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

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

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


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

Because SharePoint convert special characters in the internal name. _x0040_ = @ - More about mappings for non-alphabetic characters So that means when that column was created, its title was @Active.


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

Since you're working with the Anythingslider, which is jQuery-based, you could also consider using jQuery all the way. My SPServices library would allow you to pull list items easily using SharePoint's Web Services. Storing that content in different sites would pose no problem, as long as your permissions were set correctly. You could store both the content ...


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

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>


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


3

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


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

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.


3

You need a custom web part that impersonates an authorized user to retrieve the metatdata of the prohibited lists. My first thought was that you could give users access to the lists and use information rights management to stop them viewing the documents, or give them view but not open permissions, but that really only stops a user accidentally viewing the ...


3

The CQWP cannot support this. You can connect to the other web applications using SharePoint designer and talk to SharePoint using web services (or RSS). However, I do am not aware of whether that limits you to a single list or cross-list. The list of web services is available on MSDN. Alternatively look at the Lightning Conductor webpart from Lightning ...


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

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.



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