Im not new to MODX, but I am to this forum and in a bit of a new fase in my website/MODx work.
I’m trying to
<img src="[[+tv.pr-img]]" alt="test"/> but only the alt text (test) is showing.
The pr-img is a TV of a project page and the same image needs to be displayed on another page as a preview.
So where do you use
<img src="[[+tv.pr-img]]" alt="test"/> exactly? In a template-chunk used in combination with a call to
Maybe to show a TV from another resource, you could use the
fastField functionality that comes with the pdoTools extra:
<!-- Return TV "pr-img" from the resource with id 10 -->
@halftrainedharry for the quick response.
Let me give some more context. Something I should have done in the first post
Situation: I want to have a system that can put ∞ page previews on a preview page. Preview content consists of (page)title, Alt text, (TV)image, and intro text (later also tags).
Output is all but TV images from other pages.
Plugins: getResources 1.7.0-pl
<div class="list-docs thumb grid">
<p><a><img src="[[+tv.pr-img]]" alt="test"/></a></p>
Input = image
Output = image
Change this property to
&includeTVList=`pr-img` or don’t use it at all.
Changing it or removing it does not work. Is there another thing we are overlooking?
I can’t reproduce any problems. It works when I test it.
Here is a link to the page. I just cant see anything.
Try setting “Output Type” to
Thanks so much! It’s the combination of removing
&includeTVList=Image`` and changing the output to Default.
Now it’s not showing the image on the article page anymore.
When I change the output back to Image it is the other way around again…
What’s the markup for the image on your article page?
Maybe just add something like this
Only using [[*pr-img]] does not work, using
<img src="[[*pr-img]]"> works great because its the included img tag I guess.
Now I will start working on implementing the Thumbnail function. wish me luck
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.