I
I
Igor2016-03-05 13:14:52
MODX
Igor, 2016-03-05 13:14:52

How to display a submenu only for a specific document?

Hello.
There are 6 menu items and you need to display a submenu only for the "Articles" resource, while the rest do not.
That is:
Home, About us, Services, Reviews, Articles, Contacts | The article displayed a submenu from any page. But I do not want a submenu to be displayed on the Services page.
I know that you can check the box not to show in the menu, but there are a lot of resources and I don’t want to prescribe for everyone.
I display the menu through Wayfinder.
----
Is it possible to call another wayfinder in &innerRowTpl with parameter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2016-03-05
@ruslan_aleev

You can check the condition through I/O filters, i.e. if id=5, then display wayfainder with level=2, in other cases - 1, i.e.:
or more clearly:


More about I/O filters - docs.modx.pro/system/the-basics/filters-input-and-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question