We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    sure, just put it in the <img> tag in the code.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 11429
      • 90 Posts
      I tried that but it only outputs the page title where the snippet is placed instead of the page linked to the specific images
        • 7923
        • 4,213 Posts
        You have to get the title from the target document ofcourse, so something like:

        $title=$modx->getPageInfo($imageid,0, "pagetitle")[’pagetitle’];


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 12013
          • 61 Posts
          Can anyone let me know how the snippet should be edited so that it validates, I have read and seen that the <a> tage is out of the div but the changes I make just stop the snippet from working. My php skills are limited to say the least.