Hi,
I’m trying to output a listing of documents with Ditto, which is working great. However I would like to switch a class on a DIV every third item (because of how Blueprints CSS works). Is there any kind of counting mechanism. Also, is it possible to use conditional statements in ModX to test for a variable (if, else, etc.).
This is the chunk that I am using with Ditto:
<div class="span-7 append-1">
<a href="[~[+id+]~]"><img src="[+ProjectThumb+]" alt="[+title+]" class="projThumb">
<h6>[+title+]</a></h6>
<p>[+introtext+]</p>
</div>
Basically, I want to change append-1 to last every third item.
Thanks!