March 26, 2019
we launched new MODX Forums. Please join us at the new MODX
Back to MODX.com
MODX Community Forums
Creating & Repurposing Content
getResources and getPage
View Latest Posts
GetResources showing parent and not children
Login to Post
8 years, 3 months ago
Im doing a really basic Getresources call and it is only showing the container and not the child.
How can I make it not show the container at all and show all children. Any assistance appreciated.
[[!getResources? &parents=`[[*id]]` &limit=`10` &tpl=`answerSummary`]]
1 year, 11 months ago
your call to getResource is fine. The problem is likely with your template.
If, in the template, you use [[*___]] for anything, it will pull the information from the parent resource.
Instead, use [[+____]] to pull the content from the child.