I have a directory of resources:

-Автомобили (7) --Легковые (8) ---BMW (9) ---AUDI (10) --Грузовые (11) ---ВАЗ (12) 

I need to display a list of resources from the parent's child resources with ID 7 from cars and trucks. That is BMW, AUDI, VAZ, etc. ...

I can only display the entire list, but this is not exactly what is needed:

 [[pdoResources? &parents=`7` &depth=`5` &tpl=`priceblock` &sortby=`{"parent":"ASC","menuindex":"ASC"}` &idx=`1` &includeTVs=`pricerub,pricename` ]] 

Is it possible to do so? Or do you need to break into templates and specify the ID of each child resource manually?

  • Do you just want to not output containers? then &hideContainers=`1` 1` - Tunker
  • Without an example of what should be the output nifiga it is not clear what you want at all. - Vasis

2 answers 2

You can set the required level and parents send a list of the responders for those resources for which you need to output the child snipet code getParentsAtLevel: https://forums.modx.com/thread/95675/getresources-listing-resources-of-a-certain-level#dis-post -517925

     &parents=`[[*id]]` &resources=`-8,-9,-10,-11,-12` 
    • well, or as written above, & hideContainers = 1 . But in parents, instead of an explicit id, specify [[* id]]. If I understand what it is about, it should work - Dmitriy Lugin