Thanks for the hint, Bruno17. I tried this but I’m still confused with how the it will be configured.
I tried to set it up but stumbled on something. Here’s the structure of the website:
Homepage
- Music
- Musicians
- Article 1
- Article 2
- Movies
- Article 1
- Article 2
- Artworks
- Article 1
- Article 2
Using UltimateParent & If, I created the following chunk with the name
iftemplate:
[[!If? &subject=`[[UltimateParent? &id=`[[+id]]` &topLevel=`2`]]` &operator=`EQ` &operand=`2` &then=`latestart` &else=`latestart2`]]
latestart is the first TPL chunk, the alternative TPL chunk is
latestart2.
Then I call them on the homepage template with:
[[!getResources? &parents=`2,20,26` &tpl=`[[$iftemplate]]` &limit=`10` &hideContainers=`1`]]
The conditional statement works but when the getResources statement is called on the homepage, the template sticks to using
latestart2 as the TPL chunk. I’m pretty sure I skip some more processing. Or I might have been deluded and approached the problem on the wrong side.