We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8841
    • 42 Posts
    I have added the maxi gallery snippet

    I want to use it on the ’about us’ php page, the template currently contains the code for the static images

    How do call the maxi gallery snippet? e.g. [[!MaxiGallery!]]

    Currently, my about.php template looks like this:

    {{thehatshop_header}}

    <div id="divContentWrapper">
    <div id="InnerHolder2">
    <div id="contactleft2">
    <div id="content">
    [*content*]
    </div>
    </div>
    <div id="contactright2">

    [[!MaxiGallery!]]

    <img src="assets/templates/mytemplates/thehatshop/images/staff/eunice.jpg" title="Eunice Corry" width="149" height="174" alt="Eunice Corry" />
    <img src="assets/templates/mytemplates/thehatshop/images/staff/myrtle.jpg" title="Myrtle Boal" alt="Myrtle Boal" width="149" height="174" />
    <img src="assets/templates/mytemplates/thehatshop/images/staff/lorna.jpg" title="Lorna McDonald" alt="Lorna McDonald" width="149" height="174" />
    <img src="assets/templates/mytemplates/thehatshop/images/staff/rhonda.jpg" title="Rhonda Shuttleworth" alt="Rhonda Shuttleworth" width="149" height="174" />
    <img src="assets/templates/mytemplates/thehatshop/images/staff/phyllis.jpg" title="Phyllis Moorhead" alt="Phyllis Moorhead" width="149" height="174" />
    </div>


    </div>
    </div>

    {{thehatshop_footer}}

    Also, do I keep the <img> code here or move it somewhere else???



      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It should be [!...!], not [[! ... !]]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 8841
        • 42 Posts
        Thanks, how silly of me

        ’Manage pictures’ button now showing but when I try to upload a jpeg I get this error

        Fatal error: Call to undefined function ImageCreateFromJPEG()



        http://wiki.modxcms.com/index.php/MaxiGallery - this might be worth checking
          • 8841
          • 42 Posts
          I found the answer to this myself

          I had to remove the ; from php.ini

          extension=php_gd2.dll

          this enables GD image library in PHP