We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35986
    • 46 Posts
    Using getResources 1.3.1 i would like to have the call in my template to provide the child resources for each of my documents by using its own id#. I’ve tried using ’0’ as the id in the template as stated in the changelog (which says 0 can be used as idx) so the documents using the the template would automatically call themselves (so to speak) but i end up getting all resources from the root. How can I achieve this without putting a getResources call in each document (would like to avoid that for the sake of my client)? Do I have to edit the snippet? Thanks.
    • By default, getResources uses the current Resource’s id. Leave out the &parents property altogether or set it to &parents=`[[*id]]`
        • 35986
        • 46 Posts
        perfect. thanks.