So here's what I want: I have differently designed sections on a page, and I want to set it up so that a subfolder of that page contains resources that have the content for those sections. getResources is great at listing those sections out, but only when the designs are the same - I want each design to be different, but reusable across the site.
My thought was that I would create a number of chunks that looked like this:
//chunk_1
<div class="style-1">[[+content]]</div>
//chunk_2
<div class="style-2">[[+content]]</div>
//chunk_3
<div class="style-3">[[+content]]</div>
Then a chunk to be used as the tpl for getResources that looked like this:
The chunkName TV would just be a list with just the chunk name itself being outputted.
That was what I thought could be done, but it's not working that I can see.
My ideal would be that rather than using individual chunks, I could put the different styles into Templates, and have getResources retrieve the template with the content. But that doesn't seem possible. So, is there a way of doing what I'm hoping can be done, where I can list out differently designed sections using getResources?
Solution: Turns out I was using [[*content]] instead of [[+content]] on one of the chunks. So all of the above actually works properly
[ed. note: moniarde last edited this post 11 years, 2 months ago.]