opengeek / renderResources

A MODX Revolution Snippet for rendering the output from a collection of Resources
http://rtfm.modx.com/display/ADDON/renderResources
2 stars 1 forks source link

runSnippet needs parents #5

Open Spica2 opened 9 years ago

Spica2 commented 9 years ago

$output .= $modx->runSnippet('renderResources',array( 'parents' => 1905, 'resources' => 1902 )); The execution of the snippet must need a parents property. What if the resource has no parent and is in the first level under a context. $output .= $modx->runSnippet('renderResources',array( 'parents' => '', 'resources' => 1902 )); or $output .= $modx->runSnippet('renderResources',array( 'resources' => 1902 )); does not work.