Answer the question
In order to leave comments, you need to log in
Why doesn't tv image appear in chunk in ModX Revo?
With the help of getResources I get the collection and pass the rendering to the chunk. All data is displayed as needed, except for the image. The image path is empty. The field for the picture is TV. Everything works in the collection, the image in the table is shown. But in a chunk, when accessing - an empty string is produced. I've already tried variations of tv.image, tv_image, imagetv and just image... The result is always the same - an empty string. What could be the problem? For the tv_image field, the input type is an image, the output type is text.
<div class="card">
<img class="card-img-top" src="" alt="Изображение" />
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text"></p>
</div>
<div class="card-footer">
<small class="text-muted"></small>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
You'd better show the call, not the chunk.
I don’t know how in getResources (I’m actually surprised that someone still uses it) in pdoResources, you need to separately connect each TV so as not to load unnecessary database queries
includeTV = 'image'
maybe something similar here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question