S
S
Sergey2016-11-03 14:48:56
CMS
Sergey, 2016-11-03 14:48:56

How to hide MODX menu item?

Good day!
There is a site on ModX Evolution and 2 menus: horizontal and vertical. There is a checkbox in the admin panel of the category "Show in menu"

<input name="hidemenucheck" type="checkbox" class="checkbox" onclick="changestate(document.mutate.hidemenu);">

But it only works for the horizontal menu, which is controlled by the wayfinder module, in the vertical one - the categories are shown as they are.
I want to add a condition that if the hidemenu checkbox is set to 1, then display the code of the menu item. If not in the value 0, then do not display the code of this menu item. How to implement it?
Tried something like

But doesn't work

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2016-11-03
@x__miller_x

solved with parameter &showInMenuOnly=`1`

S
Sanes, 2016-11-03
@Sanes

There is something wrong with your syntax. What modx version?

A
Andrey Andreev, 2016-11-03
@b0nn1e

Show Your Wayfinder Challenges

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question