I’m having some trouble getting my head around this one:
I want to list some videos on a page, each video item formatted by a template chunk and with editable TV fields. But I also want the items to belong to categories which wrap the items in their own template chunk.
If I could call Ditto recursively (first on the page, then in the category chunk) this would be possible, albeit laborious. As it is, I can’t see any way to make it work.
Anyone?
-
MODX Staff
- 12,272 Posts
Ditto and tagging should work.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
If your TV is called Tags, you could wrap the ditto call for each category as <div class="[+tvTags+]">content</div>. You could atleast set different styles for each category.