Hi all. I am having a getResources call in a 'master' document that pulls in the resources that are contained in that document, templated by a chunk TE.tpl.
Inside TE.tpl, I make a TV call to a checkbox TV "HeadingExists", like so:
HeadingExists's purpose is to call a chunk $Heading when checked. And really, that chunk is called and included in just those resources pulled by getResources that have HeadingExists checked. Fine!
But.
Inside $Heading, there are two more TV calls, like so:
<h2>[[+tv.Heading]]<em class="heading_description">[[+tv.Description]]</em></h2>
The purpose of these TVs is, of course, to deliver the heading and the description of the resource I aim to pull into the 'master' resource, and that's what they do: Looking at the arrays getResources throws at me when calling it with no template, each pulled resource shows its TV values just as I set them to be. Fine still.
The problem is that in the 'master' resource, the pulled-in resources are
rendered all with the Heading and Description of the first pulled-in resource.
Judging from some posts about getResources' purpose not being to work with dynamic portions of resources, which I am not quite sure what to make of, this may or may not be expected behaviour. If it is - is there any other way to do what I'm trying to do? Symlinks? But you cannot add some of these up into another resource, can you?