We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20993
    • 37 Posts
    I am trying to get the slimbox to work with the MaxiGallery snippet but haven’t had any luck. Does anyone know of a tutorial showing how to get it done or can you give me some advice. I have the MaxiGallery working fine and I am using this:

    [[MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`]]
    for my snippet call.

    then I placed this code in the head of my template:

    <link rel="stylesheet" href="[(base_url)]assets/templates/slimbox/css/slimbox.css" type="text/css" media="screen" />
    <script type="text/javascript" src="assets/templates/slimbox/js/mootools.v1.1.js"></script>
    <script type="text/javascript" src="assets/templates/slimbox/js/slimbox.js"></script>
    and then placed the Slimbox files in the correct folder.

    What else should I be doing? Thanks
      • 20993
      • 37 Posts
      Any advice would really help, cause I am at a loss as to why it won’t work. Thanks.
        • 167
        • 10 Posts
        i’m by no means a pro at modx (yet tongue), but shouldn’t your path to the assets be: assets/snippets/maxigallery/slimbox/.. ?

        i suppose if you installed to a different directory and changed the path it would work elsewhere; but i would imagine a default install would expect them in those locations
          • 20993
          • 37 Posts
          Ah yes thank you! That made me realize that you don’t actually need to put the paths to the files in the head of the document because Maxigallery doesn’t need it. I think my snippet call wasn’t setup correctly the first time and that made it not work initially. Thanks again for the help.