We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9397
    • 2 Posts
    Hello. smiley

    Straight to the point. I’ve converted my original HTML/CSS template to a ModX template and managed to get the news system to work. But using "<?php include..." just won’t work me when I’m trying to include a custom gallery into one of more boxes on my website. I’ve searched around about how to make the include.function to work, but either I’m getting parse errors, or it can’t specify the file name(used snippets).

    The gallery I want to include is Zenphoto.

    Any help would be so much appreciated as I’m trying to make this gallery as a school project, to show both the layout of my page and photographs I’ve taken.

    So please. How am I able to include a .php file into a <div> to show the file’s contents as you usually do if it wasn’t for ModX?


    Thanks!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can’t. May I suggest that you look into the MaxiGallery snippet?
        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