R
R
RushV2020-12-26 17:37:49
MODX
RushV, 2020-12-26 17:37:49

How to write ModX condition?

All with the coming!
How to write a condition so that this piece of code would be shown only on the main page?
{$_modx->config.site_name}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur Sh, 2021-02-06
@Shev_Art_V

{if $_modx->resource.id == 1}
{$_modx->config.site_name}
{/if}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question