MODX Revolution 2.2.4
getResources 1.5.1
Need help to deal with this:
- resource X: published, is a parent to a few children that aren't hidden from menu and also published
- what i want: unpublish resource X and all it's children
- what i do: I make resource X "unpublished"
- what i get: resource X disappears, but it's children is still showing
How can i make getResources show only resources with published parents?
(it's like if i need to unpublish whole category but i will have to unpublish each child - very awkward, isn't it?)
-
☆ A M B ☆
- 894 Posts
You can use the &resources property to exclude the children by prefixing their id with a - that seems like a faster solution than unpublishing each resource.
More info here:
http://rtfm.modx.com/display/ADDON/getResources