I cant get a way out of this here. I have a list of items and the max list to be displayed is 6.
So what i need to achieve here is display the 1st item in a left floating div with all the title, description, images and the other 5 items in another div container with id="listChild" under which the content will display in UL list.
But can get this working since it its repeating the div id within it. How can i possilby write the div outside the ul list once only?
What you really should do, is to pre-sort the $items with a for-each inside a variable where you store the ids in simple elements. Then you can first ask for the 1st element and then for the rest - something like this:
Displaying a Div only once in xslt
Hi all,
I cant get a way out of this here. I have a list of items and the max list to be displayed is 6.
So what i need to achieve here is display the 1st item in a left floating div with all the title, description, images and the other 5 items in another div container with id="listChild" under which the content will display in UL list.
But can get this working since it its repeating the div id within it. How can i possilby write the div outside the ul list once only?
Here the div id childList should appear only once.
Hi Fuji,
This gets a little messy but it'll work all the while I'm sure you can understand what's happening:
What you really should do, is to pre-sort the $items with a for-each inside a variable where you store the ids in simple elements. Then you can first ask for the 1st element and then for the rest - something like this:
/Chriztian
is working on a reply...