I thought this was possible. Say I have resources like images that will be displayed on different pages, but use the same standard code. Rather than me creating templates for each page I want to abstract it out into 1 template, so it doesn’t matter what page I am on, it will still run the code.
Ok, this is the page I am working on:
http://www.webtise.net/~leasowca/
Now as you can see (if i’ve not worked it out yet) is an empty image tag.
The code I am using is thus:
I am calling this chunk from my Home template:
Which contains this code:
<div id="slideshow">
[[Ditto? &tpl=`hero-slides` &orderBy=`menuindex ASC`]]
</div>
Which uses this template:
<img src="[+slide+]" alt="" title="" />
Now on my Home page in the tree structure I have a blank template called Heroes (18) and within that blank template I have my resources, my slides. If I give the ditto a parent of 18 then it works, but what happens when I want to use the same code on a sub page? I would rather not have to keep rewriting the code.
Does that make sense?
Anyone who can help me would get good will and cheer for a lifetime.