-
ā A M B ā
- 1,231 Posts
Iām trying to create a dynamic page in modx that takes details from a custom table according to the options selected, it works great but I want to have a gallery with each option. So if the url ended as ?option=green that gallery related to green appears. Now I have this all working and the galleries are being created and being married up, not to a document ID but the table ID. The problem I am having is the manager for the galleries. I created a snippet that takes the correct ID according to the url option but MG seems to be mixing things up. I can either see the upload form and upload images to the correct option ID folder but after upload the images do not appear in the manager page but they do in the gallery.
In my script I have ( optionID is a placeholder and a snippet)
[[MaxiGallery? &galleryPictureTpl=`GalleryTpl` &gal_query_ids=`[+optionID+]` &pics_per_row=`2` &managePictureTpl=`ScrollerManagerGalTpl` ]]
[+gameID+] is created from the table ID and displays the correct gallery.
The manager page is
[[MaxiGallery? &chmod_folders=`777` &chmod_files=`777` &is_target=`1` &managePictureTpl=`galleryManageOuterTpl` &manage_gallery=`[[optionID]]` &max_thumb_size=`200` &quality_big=`100` &quality_pic=`100` &quality_thumb=`100` ]]
This will only show the upload form even after successful uploads of images that appear with the top MG call. If I replace the &manage_gallery=`[[optionID]]` with &gal_query_ids=`[[optionID]]` in the manager call I see the correct images but no upload form and if I save changes the images are all removed from the server.
Is it possible to use MG in this way and be able to end the galleries? I may just have a simple parameter wrong but any ideas would be great.