Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Adding a "Back One Page" Link to cateogries..

Quote Reply
Adding a "Back One Page" Link to cateogries..
What I want to do is add a link that goes back one previous page (not using javascript). Say, You are in the Home Dir... you move to Category AA and then move to Subcategory AABB... how would you make a link on each category page that would link to previous page (i.e. in Subcategory AABB, a link would point back to Category AA and on AA, a link points home.??

I am using templates

------------------
-Steve
http://www.whz.net

Quote Reply
Re: Adding a "Back One Page" Link to cateogries.. In reply to
Unfortunately, with templates you cannot do this (you can only use javascript on HTML template pages). But if you are not using templates, you simply add the following codes in the site_html.pl file in your sub site_html_category routine:

Code:
<a href="$ENV{'HTTP_REFERER'}">Back to Previous Page</a>

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Adding a "Back One Page" Link to cateogries.. In reply to
Ok, I understand, but if I used non-templates, how would I print the category name it should return to in that link:

Code:
<a href="$ENV{'HTTP_REFERER'}">Back to Previous Page</a>

Where it says Back to Previous Page, I would like it to say Back to CategoryAAAA if I were in SubcategoryAABB



------------------
-Steve
http://www.whz.net