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

    I used to call my gallery like this in my template:
    [[!Gallery? &album=`[[*pagetitle]]` &imageWidth=`800`....


    This allowed me to show albums which have the same name as the pagetitle.
    When the album didnt exist it simply didnt showed any gallery related stuff at all.
    Since gallery version 1.5.2 i get an php error when there is no gallery album named like the pagetitle..

    I guess i have to test if an album named "pagetitle" exists.. But so far i have no idea how to do that.

    I would really appreciate your suggestions smiley

    - Karsten
      • 39866
      • 2 Posts
      problem solved with "if"-extra and custom template variables!

      modx rocks smiley