I’m trying to run MaxiGallery in manager mode from a snippet like this:
<?php
echo $modx->runSnippet('MaxiGallery', array(
'display' => 'embedded',
'embedtype' => 'slimbox',
'pics_per_row' => 3,
'max_thumb_size' => 110,
'max_pic_size' => 0,
'thumb_use_dropshadow' => 0,
'manage_gallery' => 12,
));
?>
and the result is that the gallery is displayed with the manage button.
So far - so good, but what do I need to change to make MaxiGallery go into manager mode immediately?
I can get it to work when I add mode=admin to the URL, but that is not a workable solution for me - is there any other way to do this?
The goal is to be able to go into manager mode from within the document edit page in the manager, without having to click the manage button....
Never mind - forgot I had a MaxiGallery call in the template and that the template doesn’t pull in the document content (on purpose).
Got it to work by pushing mode=admin in the $_REQUEST array before calling MaxiGallery.
Terry