I don't know how you iterate through your items, but let's say that you use a for-each and runs through some childnodes from the current page like this:
<xsl:for-each select="$currentPage/*[@isDoc]"> something here </xsl:for-each>
This might not be the most beautiful solution, but I'm pretty sure it works. Try this:
Then $mod variable contains the number of items that you want to show before starting a new list. As I said before it's probably not the most perfect solution, but give it a shot and let me know if it works :)
xslt collections
I need an xslt for a collection control that produces the below:
<ul>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
</ul>
<ul>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
<li>{quicklink}</li>
</ul>
The key here is to have a count on the items. After the 7th item, it needs to start a new list.
Can anybody help with these one..please and Thanks in advance
Hi
I don't know how you iterate through your items, but let's say that you use a for-each and runs through some childnodes from the current page like this:
This might not be the most beautiful solution, but I'm pretty sure it works. Try this:
Then $mod variable contains the number of items that you want to show before starting a new list. As I said before it's probably not the most perfect solution, but give it a shot and let me know if it works :)
/Kim A
Thanks kim thanks a lot.......I will give a shot and let u know......Thanks kim......
is working on a reply...