L
L
leni_m2017-06-20 20:14:54
PHP
leni_m, 2017-06-20 20:14:54

How to display layout in modx?

I just got acquainted with modx ... Ready site, I want to make a version of the site for the visually impaired (display content differently).
From scratch I know how to write:

<?php if($_COOCKIE['...']): ?>
<body>Вариант обычный</body>
<?php else: ?>
<body>Вариант для слабовидящих</body>
<?php endif; ?>

But how to implement it in this engine? I can’t understand these snippets right away...
I understand that you need to choose a template depending on the php variable, and you will need to make new templates for the version for the visually impaired, but I don’t understand where and what to write.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2017-06-20
@leni_m

Via Fenom .

S
Sanes, 2017-06-20
@Sanes

https://infario.github.io/colorpanel/
This is usually sufficient.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question