F
F
Froggyweb2017-07-23 13:58:52
MODX
Froggyweb, 2017-07-23 13:58:52

How to exclude output in pdoResources?

Good afternoon.
It is necessary to exclude a folder with id 30 and nested resources (it is nested in a container with id 5) in one of the menus; a
call like this

{'pdoMenu' | snippet : [
    'parents' => '5, -30',
    'level' => '2',
    'showLog' => '1'
  ]}

in log 0.0010440: Added where condition: modResource.parent:IN(5,11,12,13,14,30,31), modResource.parent:NOT IN(30), modResource.published=1, modResource.hidemenu=0 , modResource.deleted=0, modResource.context_key=web
and the resource and everything that is included in it is also displayed according to the single resource template.
And one more follow-up question.
It is necessary to display only those resources that are specified in &resources. If it's empty, then we don't output anything.
If &resources is not empty, everything seems to work, and if empty starts to display from parents, if you specify id in parents, then it does not display anything.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question