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

    I think I won't be able to figure this out.

    I have a php file in public_html/folder which I have included in modx document using snippet and ?php include function , when interacting with this file it opens another php file which is located in public_html/folder, but instead of opening it in modx document I get redirected to public_html/folder/another.php file

    You can see what I'm talking about here - http://goo.gl/NDYsw , just press on picture and you'll get redirected to another page, but I would like for everything to happen in modx page.

    I hope I made myself clear smiley
    [ed. note: viltnieks last edited this post 14 years, 11 months ago.]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The link is pointing directly to your gallery.php script. You'll need to edit the script to generate different links.

      My advice would be to use one of the galleries written for MODx instead.
        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
        • 36461
        • 102 Posts
        OK, understood.

        I've tried modx galleries, but I don't know if it's my server location or maybe something else, but modx galleries always load quite long form me ,although pictures are optimized.