We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3722
    • 171 Posts
    I am working on setting up an eForm to create a new gallery fort the client.
    I am working off a technique here: http://modxrules.com/articles/new-documents-with-eform

    I have it mostly working, but cannot figure out how to pass the "content" code I need to create the MaxiGallery on the page.
    I am trying to pass this code
    [[Breadcrumbs]]
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`400x400` !]
    


    I am trying to modify the snippet "createNewResource" in line 14:
    $values['content'] = $modx->db->escape($fields['content']);


    I have tried placing Chunks and TV’s in there with no luck.

    Any ideas?

    Thanks
    BG66
      • 26931
      • 2,314 Posts
        • 3722
        • 171 Posts
        Thanks Sharkbait I got it working!
        I also noticed that I had a Colon at the end of the staement and not a Semicolon.
        Not sure what happened there...

        Here is the line I modified:
         $values['content'] = "[[Breadcrumbs]] [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`400x400` !]";

        (you can see it worked with the breadcrumbs call)

        Thanks!
        BG66