D
D
Dmitry Mazikin2019-05-06 10:46:09
MODX
Dmitry Mazikin, 2019-05-06 10:46:09

MOdx set the conditions for displaying the image. I am a beginner, I do not understand a little how to make a condition?

If there is a picture in cat_img and in prod_img, then display them, if not, then display the given link to the logo. How to do it right? this is needed for microdata modx . thanks in advance

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
archelon, 2019-05-06
@archelon

See output modifiers
https://docs.modx.com/revolution/2.x/making-sites-...
for example,

K
keslo, 2019-05-06
@keslo

MODX Evo?
Use the if snippet:


If the link is either in cat_img or prod_img , then you can do this:

D
Dmitry Mazikin, 2019-05-06
@pythongod

modx is not evo , but revo. thanks for the answer, I'll try now

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question