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?
-
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
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.