M
M
Max Zhukov2018-05-10 17:15:47
MODX
Max Zhukov, 2018-05-10 17:15:47

How to set an if condition in a chunk?

типо if    != '' {      
<div class="sevice-include-wrap-info">
                  <img class="sevice-include-icon-info" src="img/icon_notice.png" alt="Icon notice">
                  <div class="sevice-include-info"></div>
              </div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
archelon, 2018-05-10
@MaksZhukov

you can use filters phx
modx.ws/blog/blog-o-modx-revolution/filtry-vvoda-v...
in this case notempty
for example

F
Froggyweb, 2018-05-10
@Froggyweb

There is also fenom and an if snippet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question