Answer the question
In order to leave comments, you need to log in
How to check if the tv value of another resource is empty?
The main page has a tv with an image that will be used on different pages and different templates. I was able to get the value of tv via . There is a chunk in which you need to check the value of the field and if it is not empty, then output html
<div>
<img src="">
</div>
Answer the question
In order to leave comments, you need to log in
You can do this, first put the output of pdoField in a placeholder:
And then check for non-emptiness
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question