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
|
 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
|