Add back to album button on matrix theme

NIPhotography

Joined: 2007-02-18
Posts: 8
Posted: Mon, 2009-03-02 02:16

I am trying to figure out how to ad a "back to album button" in photo.tpl for my photo page. There are back and forward buttons but no way to return to the album I was in from the photo page. I am using the matrix theme. I haved searched the forums with no luck.

Gallery URL = http://www.northidahophotography.com/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.8 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.75-community-log, lock.system=flock
Toolkits = Exif, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux host304.hostmonster.com 2.6.27-6_1.intel.BHsmp #1 SMP Thu Nov 13 15:27:29 MST 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Avant Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Rows in GalleryAccessMap table = 1861
Rows in GalleryAccessSubscriberMap table = 400
Rows in GalleryUser table = 3
Rows in GalleryItem table = 399
Rows in GalleryAlbumItem table = 17
Rows in GalleryCacheMap table = 0

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-03-02 04:07

Looks to me like you removed the breadcrumb navigation in your customizations to the matrix theme.

<a href="{g->url arg1="itemId=`$theme.item.parentId`"
			     forceFullUrl=true forceSessionId=false}">up to album</a>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-03-02 04:35

Or a simple back button:
<a href="javascript:history.go(-1)">Back</a>

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2