Is there a way to insert a template variable from another resource into an existing template? For example, if there is an image file set as a TV in a child resource, can I display that same image on the parent resource from its child’s TV? Can Ditto do this?
Thanks!
Ditto can for sure do it by &documents or &parents parameter.
But look for GetField snippet in the reposititory!!
Yes [[Ditto? &documents=`19,20,21` &tpl=`goGetTV`]]
Create a
chunk goGetTV:
http://ditto.modxcms.com/tutorials/creating-a-custom-template.html