Another widget that helps to create Maxigallery backend manager. This is a result of discussions here
http://modxcms.com/forums/index.php/topic,28708.0.html
Installation
Copy mg_backend_manager folder to \assets\plugins\managermanager\widgets subfolder.
Widget options
mm_widget_mg_backend_manager($docid, $title , $roles, $templates)
$docid: document ID with MG manager call [required]
$title : title of the MG backend manager tab. Leave empty for default (Edit gallery)
$roles: comma separated list of role IDs this should be applied to. Leave empty (or omit) for all roles [Optional - default is all]
$templates: comma separated list of template IDs this should be applied to. Leave empty (or omit) for all templates [Optional - default is all]
Step by step: How to create MG backend manager
1. Install ManagerManager and this widget
2. Create document, hide it from frontend users. Template - blank.:
uncheck Cacheable
[!MaxiGallery? &manage_gallery=`[[GetGalleryID]]` !]
3. Create snippet GetGalleryID with this code
<?php
if (isset($_GET['mmgal_id']))
{
$id = $_GET['mmgal_id'];
session_start();
$_SESSION['mmgal_id'] = $id;
}
else
{
$id = $_SESSION['mmgal_id'];
}
return $id;
?>
4. In MM rules add your rule (see widget options)
mm_widget_mg_backend_manager(19);
where 19 is an ID of the document created in 2nd step.
5. Hide back_to_normal_view button in MG manageoutertpl.html template. It is not needed in the backend.