I am working on an events calender using ditto now I would like to hav e2 classe one for even row and one for odd rows (like filedownload uses) but I can not find any tuturial on making templates for ditto or if its posible to have an option like this.
Dimmy
You can do alternate row templateing by using &tplAltRow=`chunkname` and &tpl=`chunkname` with the first for even and the second for odd.
nice, thanks for the help
Just for curiosity: has &tplAltRows been renamed to &tplAlt in the meantime? Maybe since 2.0? I wonder because I’ve tried &tplAltRows and it didn’t work, but &tplAlt did.
...whatever...
-
MODX Staff
- 12,272 Posts
Lots of things changed between ditto 1.x and 2.x, and I suspect that the syntax of that param did as well.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me