Using:
- MODX Revolution 2.1.3-pl
getResources v1.4.0
How do I automate the class switching using getResources!?
For example I have a list, the first item is active the rest inactive. I've tried using an if output but it sets all the li's to inactive:
<li [[+id:eq=`[[*id]]`:then=` class="active"`:else=` class="inactive"`]]><a href="#[[+alias]]">#[[+pagetitle]]</a></li>