We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16085
    • 203 Posts
    Using:

    • MODX Revolution 2.1.3-pl
      getResources v1.4.0

    • jQuery 1.5
      jQuery UI 1.8

    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>