I have been looking all over the forum and found some pointers but couldn’t get it to work the way I want for ditto:
I want to be able to have even and odd classes for each li element and first and last class for the first and last one.
There is a solution for maxigallery, thats just the way it has to be, but I don’t know how to make this work for ditto.
I know there is a way to have diferent templates/chunks for those with ditto, but that doesn’t suit me..
This is because the first and last classes don’t have even and odd classes, I would like the first and last element have both classes like this:
<ul>
<li class="first even"></li>
<li class="odd"></li>
<li class="even"></li>
<li class="odd"></li>
<li class="even"></li>
<li class="odd last"></li>
</ul>
For maxigallery:
http://modxcms.com/forums/index.php/topic,30762.0.html
For ditto
Works, but I don’t want to have to specify how many li elements, but want to automate it to have the last li element.
http://wiki.modxcms.com/index.php/PHx
I know it should be really easy to do, but I don’t have those skillz yet.
Thanx for any help in advance!!