ContentQuery Web Part xsl script to view all available valuesMay 26, 2009 12:58
This script can be added to the itemstyle.xsl for use. I’m always copying it from older projects, so now it’s on my blog for faster access
<xsl:template name=”TestView” match=”Row[@Style='TestView']” mode=”itemstyle”>
<xsl:for-each select=”@*”> ITEM: <xsl:value-of select=”name()” /> VALUE: <xsl:value-of select=”.” /> <BR /> </xsl:for-each> <BR /> <BR /> </xsl:template> Create a multi column layout with the content query tool web partSeptember 17, 2007 17:55In your Office Sharepoint Server 2007 site you can display a dynamic view of content on a page by using the Content Query Web Part. This post from Tyler Butler and this one from Heather Solomon helped me on my way. With the help of these blogs it is not very hard to create a single column presentation of your content. Every single item gets processed by the ItemStyle.xsl found in the Style library / XSL Style sheets section. But if you would like to order your content dynamically in 2 columns you will need to build some extra coding in the ItemStyle.xsl and in the ContentQueryMain.xsl, which is also found in the XSL Style sheets section. The default templates present our data in a single column: But for some sites we might want to show our data inside 2 columns: |
||