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."
I tried that but it only outputs the page title where the snippet is placed instead of the page linked to the specific images
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."
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.