R
R
RushV2020-08-31 11:58:49
MODX
RushV, 2020-08-31 11:58:49

How to write a condition on ModX?

How to write a condition for the absence?
If there is, then we display it, otherwise we display this photo

<img src="/assets/img/profile.jpg" class="img-fluid rounded-circle border shadow" alt="">

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Lunegov, 2020-09-02
@RushV

<img src="/assets/img/profile.jpg" class="img-fluid rounded-circle border shadow" alt="">

F
Froggyweb, 2020-08-31
@Froggyweb

You can use modifiers
There is an IF snippet
If you use a template engine, then everything is simpler. For revo Fenom, for Evo - Blade

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question