Hey folks,
Here is my (I guess fairly easy) question concerning TVs and Ditto:
I do have an image-TV called "athlet_img" where a picture can be chosen. Inside the very document, of course, I can address the image with something like <img src="[*athlet_img*]">. Works.
Now, I need the same image "outside" of the document, in a ditto call. I want to make an overview of all the documents inside a folder, like a blog, but showing the [*athlet_img*] and the [+longtitle+] of every document.
How can I achieve that? The TV does not work in a chunk (ditto: &tmp=`chunkname`), obviously.
Thanks for the help,
Simon
Aww. Found the solution right now: Using [+athlet_img+] in the chunk instead of [*athlet_img*].
Simple as that. Wonderful.
-
β A M B β
- 24,524 Posts
The thing to remember about Ditto is that it is working with other documents, but MODx is processing the document itβs called on. So [*...*] will refer to the document it is called on, while [+...+] will refer to the document Ditto is processing, and will be evaluated for each document Ditto processes.