Page 1 of 1
back link to the previouse page
Posted: Mon Dec 08, 2008 9:09 pm
by ghadad
is there any smarty tag to get back like the "back" button in the browser .
sometimes i need to get back from item page to the search result .
Thanks
Golan
Re: back link to the previouse page
Posted: Wed Dec 10, 2008 4:19 pm
by tophers
I have the same question - I've added a 'Comments Policy" link into the Comments module template that takes someone to a separate page displaying the policy - I'd like them to be able to go back to the blog posting they were viewing. Is there a way to do this?
Re: back link to the previouse page
Posted: Wed Dec 10, 2008 4:37 pm
by calguy1000
come on guys.... this is simple, and not CMS related:
Code: Select all
<a href="#" onClick="history.go(-1)">Back</a>
Re: back link to the previouse page
Posted: Wed Dec 10, 2008 5:23 pm
by tophers
I realize that there are ways to accomplish this, although the method you describe gave me problems - it kept linking to the index page, so I went with this:
I was wondering if there was a simple method within the CMS to accomplish the same thing, so that content editors could access it easily. Currently I'm leaning toward making a Global Content Block of the above and letting them call that, but wondered if i wasn't reinventing the wheel.
Re: back link to the previouse page
Posted: Wed Dec 10, 2008 5:25 pm
by calguy1000
GCB is the way to go.
Re: back link to the previouse page
Posted: Wed Dec 10, 2008 5:27 pm
by tophers
Thanks for the quick responses Calguy - moderators like you are what makes this forum work.
ghadad, if this solution works for you, please let us know and mark this thread [solved].