They mention going to /Style Libary/XSL Style Sheets/ItemStyle.xsl and modifying. As Heather mentions, this unghosts the page. Not the most desirable behavior. Plus, any user that does this will now see that as an option in the Presentation node of the Content Query Web Part Toolpane.
So in the .webpart file that is exported, find the ItemXslLink property and change it to something like:
<property name="ItemXslLink" type="string">/Style Library/XSL Style Sheets/CustomItemStyle.xsl</property>
So here is what what my CustomItemStyle.xsl looks like:
<xsl:stylesheet
version="1.0"
exclude-result-prefixes="x d xsl msxsl cmswrt"
xmlns:x="http://www.w3.org/2001/XMLSchema"
xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
xmlns:cmswrt="http://schemas.microsoft.com/WebParts/v3/Publishing/runtime"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:template name="MyTemplate" match="*" mode="itemstyle">
<div style="background: red"><xsl:value-of select="@MyField" disable-output-escaping="yes"/></div>
</xsl:template>
</xsl:stylesheet>
Related Posts:
>>Event ID 202 - SharePoint Portal Administration Service
>>SPS 2003 Restore - The database schema is too old to perform this operation in this SharePoint cluster
>>Post Installation Tasks for MOSS 2007 and WSS 3.0
>>New MOSS Blog Site Created
>>Hidden treasure in WSS SDK
>>Windows Live Writer
>>Custom Navigation Tabs
>>Autenticación biométrica en SharePoint (Precise BioMatch)
>>Explore the SharePoint 2007 object model with Python
>>UK SharePoint User Group: June 2007 meetings
>>SharePoint 2007: Upload a Document with Its Meta-Data
>>Managed Property names
Month Archives:
Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Community News Web 2.0 Web2.0 Startups Search General Software Development Marketplace AJAX People Powered! myspace Microsoft Visual Studio Windows Vista Vista YouTube Silverlight MOSS Events WPF C# Featured News MOSS 2007 Office 2007 Tools Community General
@2007 All rights Reserved |