D
D
dmitryIG2017-03-17 11:12:50
PHP
dmitryIG, 2017-03-17 11:12:50

PdoMenu modx how to take data from web context only?

There is a multidomain site with ContextRouter (context switching depending on the domain). In the web context, everything works fine, but in other contexts, due to lack of materials, the menu is not complete. How to force pdomenu to take data always from the web context?
Tried to add &context = `web` but in that case the menu works only in this context.
Thanks for the help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2017-03-26
@ig0r74

&context = ``

S
sanch0ss, 2017-08-17
@sanch0ss

Use where. Here is an example where it displays resources whose context matches the context of the current resource (i.e. the English version of the page - it only displays English)


according to your question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question