We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3842
    • 1 Posts
    Hi everyone,

    Long time reader, first time poster etc smiley

    I’m having a nightmare with MG and Ditto working together. I’ve read Doze’s comments in other forum posts, but it doesn’t seem to be solving my problem.

    I’m trying to get more than one gallery onto a page and I figured the best way to do this would be using Ditto. I’ve set up my template (a chunk called ’gallery’) for Ditto to call MG in the style of the "One thumbnail in page, but all pics in Slimbox/Lightbox v2 picture set" on the Wiki for MG, plus bits from past help that Doze has given to others:

    [[MaxiGallery? &display=`embedded` &embedtype=`slimbox` &order_by=`pos` &limit=`1` &galleryPictureTpl=`mgGalPicTpl` &max_thumb_size=`143x89`  &max_pic_size=`0` &view_gallery=`[+id+]` &manage_target=`[+id+]` &is_target=`[+id+]` ]]
    [[MaxiGallery? &display=`embedded` &embedtype=`slimbox` &order_by=`pos` &limit=`99999` &galleryPictureTpl=`mgGalPicTplHidden` &manageOuterTpl=`CODE:` &manageButtonTpl=`CODE:` &max_thumb_size=`143x89` &max_pic_size=`0` &view_gallery=`[+id+]` &manage_target=`[+id+]` &is_target=`[+id+]` ]]  


    All the other templates mentioned in that are correctly set up as per the Wiki.

    I’ve then set up some resources and placed the following Ditto call in their parent resource:

    [!Ditto &tpl=`gallery` &startID=`7` !]

    That’s the correct startID and the resource is called correctly (tested by putting [+content+] into the template)

    So I get to this stage and the ’Manage pictures’ button isn’t showing... What am I doing wrong?

    Thanks for any help in advance, this is giving me a real headache!

    Matt
      • 7923
      • 4,213 Posts
      Maybe you should try with a simpler MaxiGallery snippet calls at first and then add stuff bit by bit. When you put all that together at once, there’s lots of things that can be wrong..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."