Skip to content

Instantly share code, notes, and snippets.

@alroniks
Created November 28, 2015 16:48
Show Gist options
  • Save alroniks/5858ceaf7f9e622be8ae to your computer and use it in GitHub Desktop.
Save alroniks/5858ceaf7f9e622be8ae to your computer and use it in GitHub Desktop.
Get resources by resource group

[[!pdoResources? &tpl=@INLINE {{+id}} {{+pagetitle}} &select={"modResource":"id,pagetitle"} &parents=0 &leftJoin={ "modResourceGroupResource": {"on":"modResourceGroupResource.document = modResource.id"}, "modResourceGroup": {"on":"modResourceGroup.id = modResourceGroupResource.document_group"} } &where={"modResourceGroup.name":"test"} ]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment