Hi, I'm a new member so I hope I'm posting in the right thread. I was wondering if there's a way to add a text link from a specific page or photo in Gallery2 back to a specific page elsewhere on the site (either a text link, or have the photo itself as the link)? I'm not very knowledgeable of php, but am reasonably comfortable with xhtml. Any help would be greatly appreciated. Thanks!
Posts: 16503
Is this link going to be the same on every album or photo page? If so you can edit the templates:
http://codex.gallery2.org/Gallery2:Editing_Templates
/gallery/themes/YourTheme/templates/local/album.tpl
/gallery/themes/YourTheme/templates/local/photo.tpl
assuming you followed the link above to create a local directory to put your changes into.
If you want a different link on each of these albums or photos, then the best would probably be to edit the description of the album or photo to have a link. See my main page and how I have a link to Gallery's home page: http://photos.kevinnehls.com/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 2
Thanks nivekiam...that was quick! I posted just before I had to leave for work thinking maybe I'd have a response by the time I got home. Editing the photo works great...thanks for the help.
Posts: 16503
Yeah, we're in the middle our code sprint for another day
http://gallery.menalto.com/GalleryCon09
Glad it's working now.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here