I'm trying to pull in custom columns from a SP list, and it works fine, but now I have to figure out how to do a for-each instead since it needs to pull in all items not just one.
Here's where I am so far:
<xsl:template name="forSale" match="Row[@Style='forSale']" mode="itemstyle">
<div class="wrapper">
<div id="banner-slide">
<ul class="bjqs">
<li><a href="{@FileURL}" />'><img src="{@ThumbnailURL}" title="{@Caption}" /></a></li>
</ul>
</div>
</div>
</xsl:template>
The <li>
part is the one I need to do a for-each on. Any ideas how to accomplish this?
EDIT: How about this instead?
SharePoint's ItemStyle template pulls in each row from a list automatically, so how would I pull this piece before the ItemStyle
<div class="wrapper">
<div id="banner-slide">
<ul class="bjqs">
And this piece of code after ItemStyle?
</ul>
</div>
</div>
This is how my ItemStyle would look then:
<xsl:template name="forSale" match="Row[@Style='forSale']" mode="itemstyle">
<li><a href="{@FileURL}" />'><img src="{@ThumbnailURL}" title="{@Caption}" /></a></li>
</xsl:template>