We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    Doze can you think on a way to set the title on images to the child gallery pagetitle if the user didn’t supply
    any title when they upload the picture?

      • 24393
      • 83 Posts
      <p style="width: [+maxigallery.picture_width_thumb+]px;">
      [+maxigallery.picture.title:isnot=``:then=`
      	[+maxigallery.picture.title:htmlent+]
      `:else=`
      	put your default title here
      `+] 
      </p>
        stevesunderland.com
        GRAPHICS | INTERACTIVE | MARKETING
        xhtml + ajax + seo websites powered by modx
        • 7923
        • 4,213 Posts
        Yep, do like rajfantastic said in every place where title is displayed in all templates.. that affects very much to the readability of the templates though..

        another option would be is to do a custom phx modifier e.g. snippet named "phx:htmlentdefaultitle"

        <?php
        if (trim($output) == '') {
        return "default title here";
        } else {
        return htmlentities($output);
        }
        ?>
        


        Then in maxigallery templates, replace :htmlent with :htmlentdefaultitle


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."