We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21480
    • 2 Posts
    I’ve managed to add a class to all the items that are folders.

    Now I want to add a class to all the items that are not folders.

    I’ve been searching and searching but can’t find the answer.

    Anyone that can tell me how to accomplish this?
      • 25663 MODX Staff
      • 12,272 Posts
      Maybe you could create two custom templates with the appropriate classes already built in rather than using the class-related parameters.

        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 21480
        • 2 Posts
        That did the trick.

        I’m using the RowTpl and the parentRowTpl now.

        The RowTpl is setting the classes I want when it’s not a folder and the parentRowTpl is setting the classes I want when i is a folder.

        Thanks for the hint.