Answer the question
In order to leave comments, you need to log in
How to make two kinds of menu on modx site?
There are two types of menus: on the main page and on all other pages. On the main light, with a black pop-up submenu. Now we need to make all the other pages dark, otherwise the white merges with the background. But there is only one header code and styles only for this header. How to make it so that you can specify styles for the same header, but so that they work only on certain URLs?
Answer the question
In order to leave comments, you need to log in
Install with a hair dryer or pdoTools, where it is included.
{set $id = $_modx->resource.id} #Создаем переменную и помещаем в нее id ресурса
{if $id == '1'} #Условие если id равен 1
#то
#Тут пишем html код или вызов сниппета для главной
{else}
#Тут для всего основного
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question