How do I filter by resources? I expected by using &resources to do so, but only the exclution works.
Tree:
- 25
-- 56
-- 57
-- 58
[[getResources? &tpl=`tpl_mitarbeiter_sidebar` &sortby=`menuindex` &sortdir=`ASC` &limit=`99` &resources=`57` &includeContent=`1` &tvPrefix=`` &includeTVs=`1` &showHidden=`1` &depth=`1` &parents=`25` &processTVs=`1`]]
Expected behaviour: Show only resource 57
Result: All children of 25
[[getResources? &tpl=`tpl_mitarbeiter_sidebar` &sortby=`menuindex` &sortdir=`ASC` &limit=`99` &resources=`-57` &includeContent=`1` &tvPrefix=`` &includeTVs=`1` &showHidden=`1` &depth=`1` &parents=`25` &processTVs=`1`]]
Expected behaviour: Show all children of 25 except 57
Result: as expected
So shouldn`t &resources only show the specified resources and filter out all others?
Reason: I have a TV ’selection’ which gets the ids of a special parent, I want to use this selection for the getresources call:
[[getResources? &tpl=`tpl_mitarbeiter_sidebar` &sortby=`menuindex` &sortdir=`ASC` &limit=`99` &resources=`[[*selection]]` &includeContent=`1` &tvPrefix=`` &includeTVs=`1` &showHidden=`1` &depth=`1` &parents=`25` &processTVs=`1`]]
The TV ’selection’ is correct implementend with outputfilter delimited list ",". So I only want to show these resources selected by that TV.