NextGEN Gallery 1.9.2
NextGEN Custom Fields 1.2.1
I've sort of run into a stopping place with what should be an easy problem to solve. But maybe someone can lend some insight, or suggest attacking the problem in a different way.
Essentially, I am using the stock Shutter Reloaded overlay effect that comes with NextGEN Gallery. (I'm happy to try a different overlay solution if you can suggest).
I am also using NextGEN Custom Fields for a new field called "Image Source". Not only do I want to see the image description (title tag) in the overlay, but also the text entered for "Image Source".
Here's the tricky bit:
My not-so-brilliant solve:
Using the PHP provided by the fantastic Shauno, I'm putting the string on the page, under each thumbnail image, in a paragraph with the style
My PHP from the gallery page (gallery.php):
var imgSource = document.getElementById('imgSource').innerHTML; NavBar = '<div id="shTitle"> <div id="shPrev">' + prevlink + '</div><div id="shNext">' + nextlink + '</div><div id="shName"><p><strong>Description:</strong> ' + shutterLinks[ln].title + '</div>' + imgSource + ' ' + imgNum + '</div>';
Okay, now this is the weird part: when shutter-reloaded.js grabs the content p#imgSource, it totally writes: "Source: " under the image's description. But nothing from the content that the PHP is putting on the page.
Thoughts? Am I nuts? Do I rethink the entire design of having the custom fields content appear in the lightbox overlay?