[Plugin: NextGEN Gallery] Adding a new gallery variable?
-
I’m trying to add a field to the gallery settings. The field I’m adding is called “Store Link.” I edited the /admin/manage-images.php to have:
<th align="left"><?php _e('Store Link', 'nggallery') ?>:</th> <th align="left"><input type="text" size="50" name="store_link" value="<?php echo $gallery->store_link; ?>" /></th>And added the following to /lib/image.php:
var $store_link = ''; // Gallery pathBut I don’t know what else needs changing to store this variable wherever the rest are being stored. Basically the purpose is I want to have a button at the bottom of the thumbnail view that links to a page, but the client doesn’t know enough about coding to put the html in for each one, so I wanted to have a link field then use it in /view/gallery.php
Any ideas?
The topic ‘[Plugin: NextGEN Gallery] Adding a new gallery variable?’ is closed to new replies.