Datalist type of list - is this possible? Options
lloydphillips
Posted: Thursday, May 29, 2008 6:32:00 AM
Rank: Enthusiast

Joined: 5/22/2008
Posts: 48
Location: Auckland, New Zealand
I have a set of pages (8 so far) and I want to list them out almost like you would with a DataList which has horizontal layout but with 2 columns. Would it be possible to do this in a macro?

I'm thinking I could do two for each loops and determine if the order value is even or odd, if it is then print. How would I do this or is there a better way?

Lloyd
Dirk
Posted: Thursday, May 29, 2008 7:55:41 AM

Rank: Fanatic

Joined: 9/27/2007
Posts: 463
Location: Belgium
Hi Lloyd,

No need for a nested for-each loop in your xslt, you could use this if test to verify whether the current row's order is odd or even

Code:
<xsl:when test="position() mod 2 = 0">


Regards,
/Dirk


level 1 certified - umbraco blog at netaddicts.be
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.