S
S
sergemin2017-03-21 10:21:57
MODX
sergemin, 2017-03-21 10:21:57

How to write an if condition in modx?

I want one information to be displayed on the page under one condition, in another case - another
. Something like this?

неавторизован

And how to make a link from one page to another? can't use id

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2017-03-21
@sergemin

Wrap in a link condition. Or Fenom

{if $_modx->user.id > 0}
    Привет, {$_modx->user.fullname}!
{else}
    Вам нужно авторизоваться.
{/if}

D
display: block, 2017-03-21
@qork

I/O filters
https://docs.modx.com/revolution/2.x/making-sites-...
Tag syntax
https://docs.modx.com/revolution/2.x/making-sites-. ..
Why can't I create a link? Revo or Evo?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question