<![CDATA[ Can I have MaxiGallery in the manager? - My Forums]]> https://forums.modx.com/thread/?thread=49851 <![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=3#dis-post-492688
mm_createTab($title, 'mgmanager', '', '', '<iframe id="mgmanager" src="'.$modx->config['site_url'].'/?id='.$docid.'&mmgal_id='.$id.'" height="500" width="100%" scrolling="yes" frameborder="0"></iframe>');


this solution don't work. Because the iframe load e previus versione of page not the last version. For load the last versione of my: $modx->config['site_url'].'/?id='.$docid.'&mmgal_id='.$id i do clear browser cache but i don't thick this is the solution.]]>
cristianb88 Mar 14, 2014, 03:08 PM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=3#dis-post-492688
<![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=3#dis-post-292282 sinbad Oct 05, 2008, 03:54 PM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=3#dis-post-292282 <![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=3#dis-post-292281
What’s new - removed iframe border and scroll, iframe adjusted to full content height.

Other info here in MM thread http://modxcms.com/forums/index.php/topic,16948.msg177037.html#msg177037]]>
Metaller Sep 25, 2008, 04:43 AM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=3#dis-post-292281
<![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292280
I found this solultion in this forum Item

http://modxcms.com/forums/index.php/topic,28181.msg171314.html#msg171314

Which gives you a great MySQL database manager as a module....

Since Maxigalley already have a front End Manager all thats needs to be done is
Create a new Module and paste this in:

$siteurl = $modx->config[’site_url’];
header ("Location: $siteurl/link_to_your_Galleries-OR-Gallery");

Refresh, then Manage your Galleries as a Module in the Manager

Your will probably need to create some admin pages to remove
your page chrome




]]>
mike_247 Sep 25, 2008, 02:24 AM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292280
<![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292279
I will definitely use this very soon.]]>
dev_cw Sep 23, 2008, 08:56 AM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292279
<![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292278

With this solution people can extend the manager like how they want, just by creating a iframe. I see much posibilities with this, like editing a database table which is linked with the document smiley]]>
ronaldlokers Sep 23, 2008, 08:36 AM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292278
<![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292277 doze Sep 23, 2008, 08:06 AM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292277 <![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292276
UPD:

Here is absolutely working solution. All as in post by doze here http://modxcms.com/forums/index.php/topic,28708.msg176199.html#msg176199 but with small fix.

1. Create document, hide it from frontend users. Template - blank, uncheck Cacheable. Content:
[[MaxiGallery? &manage_gallery=`[[GetGalleryID]]` ]]


2. 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;
?>


As you see, gallery id variable saved in session, because it lost when our frame is reloading after uploading images or changing title/discription.

3. MM call
mm_createTab('Gallery', 'mycats', '', '', '<iframe src="http://modx/2/?mmgal_id='.$_GET['id'].'" width="100%" height="500"></iframe>');


where http://modx/2/ is an URL of the document created in 1st step.

4. Hide back_to_normal_view button in MG templates. It is not needed in the backend.

Now i think this thread may be marked as SOLVED smiley]]>
Metaller Sep 21, 2008, 02:48 PM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292276
<![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292275
What I mean is that you would create a new tab to the MODx manager when you edit a document just like in your first example, but the IFrame source would always point to the same document, just pass the id of the gallery to edit in the url query string (see code examples above). Eg. you only need to do one document and that is used when editing all gallery documents in the tab through IFrame.

So like your first example, but just one MODx document is needed to edit all galleries.]]>
doze Sep 21, 2008, 09:40 AM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292275
<![CDATA[Re: Can I have MaxiGallery in the manager?]]> https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292274
t would be difficult for the customer.]]>
Metaller Sep 21, 2008, 12:59 AM https://forums.modx.com/thread/49851/can-i-have-maxigallery-in-the-manager?page=2#dis-post-292274