I am building a panel where the backend user can choose (using MIGx) )from 6 layouts.
I am then passing the json output into a snippet where i extract the IDs and then run getResources via runSnippet
e.g.
Snippet:
$output = $modx->runSnippet('getResources', array(
'resources' => $resourceIDs,
'depth' => '1',
'tpl' => 'tplWrapper',
'toSeparatePlaceholders' => 'slot-'
));
tplWrapper Chunk:
[[+slot-0]]
[[+slot-1]]
[[+slot-2]]
I am getting no output with this and have also tried it uncached and as straightforward snippet from a chunk.
If I omit the tpl and placeholder I can see the array output so I know it's returning something.
I tried a multi-columns example I found in the forum but it doesn't work for me,
Can anyone point me to an example?
thanks,