Punch Up
Member
Posted 11 months ago #
I am using NextGen Gallery and NextGen Gallery Custom Fields plugins.
I know that in order to add a custom field to the Shutter image (the screen that shows the expanded image with description and navigation bar), I have to somehow edit the shutter-reloaded.js file. But how do I call the custom field code (php) to the shutter-reloaded page?
I wish I could just do this:
NavBar = '<div id="shTitle"><div id="shPrev">' + prevlink + '</div><div id="shNext">' + nextlink + '</div><div id="shName">' + shutterLinks[ln].title + '</div><div><?php echo $image->ngg_custom_fields["Minimum Height"]; ?></div>' + imgNum + '</div>';
Many Thanks!
billseymour
Member
Posted 10 months ago #
I am interested in the same thing. I realize that the shutterLinks[ln].title displays the Alt title (or the Description), rather than the title. So I also have a need to modify the Shutter nav bar.
billseymour
Member
Posted 10 months ago #
Update: I found a solution to the problem of Shutter using Description rather than title. This link was referenced elsewhere in this forum about a year ago, under topic: nextgen-gallery - no title in shutter pop-up?
http://j.modjeska.us/?p=113
Apparently Shutter draws "title" from the a-link for the image created in nexgen-gallery>view>gallery.php, and the a-link created there sets title = Description.
Changing the a-link to set title = Alttext results in Shutter displaying the Alttext rather than the Description for the title of the large displayed image.
Perhaps this will be of some help for the OP's question.
Punch Up
Member
Posted 10 months ago #
Thanks Bill. I will keep this in mind for future projects.