Quote from: BobRay at Mar 02, 2011, 12:02 PM
If the tag is in a Tpl chunk used by getResources, you need to use a placeholder tag:
You’ll also need to add the TV-related parameters to the getResources tag: &tvPrefix, &includeTVs, etc.
Bob you might have just seen the missing details I have experimented with them placeholders in the call but still no luck, I cant find any documentation or working examples of getResources so I am just running with the similar method to ditto, so here’s everything I have.
The parent page has this call
[[getResources? &parents=`49` &tpl=`showroom`]]
The showroom chunk tpl now has this
<h2>[[+pagetitle]]</h2
[[*showroom]]
<p>
[[+introtext]] - <a class="readmore" href="[[~[[+id]]]]" title="[[+pagetitle]]">More Information ..</a>
</p>
<hr />
The template variable is called showroom has in input of image and an output of default.
The html output is the following
<h2>test 2</h2>
bike2.jpeg
<p>
- <a class="readmore" href="index.php?id=54" title="test 2">More Information ..</a>
</p>
<hr>
<h2>test 1</h2>
bike2.jpeg
<p>
- <a class="readmore" href="index.php?id=53" title="test 1">More Information ..</a>
</p>
<hr>
On that html the TV outputs bike2.jpeg on both pages but one of them should be bike1.jpg it looks like I am missing some other bits to make this work.
Any more help would be great thanks for everything so far.