I’ve tried using placeholders to show this image to no avail.
How do I not display this line if the image field has no value – no image code text??
I can not use ‘notempty’ because this particular item will not display using placeholders.
Thank you, Tom
I fixed the line code, thank you for catching that.
I must test on this exact line of code only, not anything else…alternate codings to present the image have not worked for me…Idk why, I am not a MODx expert.
Thank you, Tom
but then I realized I need MODx to not write the paragraph tag if the image is blank…more research will be done but if anyone can point me to something that would be nice
I tried
but it doesn’t do anything
AAAAAAAAAAAAAND @halftrainedharry’s suggestion is the winning code!!
This is now marked as the desired/wanted answer.
It does what’s needed – get the image and not write the <p> tag if the image does not exist.
Thank you everyone!! tom