-
- 607 Posts
Did you set the output widget of your TV to image? Viewing source shows <img src=""> which means for some reason it’s not seeing your photo source
-
- 8 Posts
Yhea, checked it 5 times, but seems its not the problem. I was thinking of making it a image URL. So you select a image, and it places the url in the [*Foto1*], but that was allready the case.
So, still stuck!
-
- 607 Posts
Ahhh... replace
<div class="fotohome"><img src="[*Foto1*]"></div>
with
<div class="fotohome"><img src="[+Foto1+]"></div>
See if that works
-
- 8 Posts
That solved the problem! Still I find it weird to use a placeholder tag instead of a TV tag.
Anyway. Thanks alot!
The chunk is applied to the document specified (or to each document in turn in the case of multiple documents, as Ditto does) so you need to use the placeholder. The TV tag will return the value for the TV for the document being processed by MODx, the one containing your snippet call, and not the value for the document being processed by the snippet. The snippet gets the value of the TV for the document it is processing and sets a placeholder for it, and that is how it gets inserted into the chunk.
So basically you have two parsers processing, MODx processing the document with the snippet call, and the snippet processing the documents specified in its parameters. If you can keep the two (what MODx is doing and what the snippet is doing) separate in your mind, you’ll better understand what’s going on.