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
back link to the previouse page
Re: back link to the previouse page
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?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: back link to the previouse page
come on guys.... this is simple, and not CMS related:
Code: Select all
<a href="#" onClick="history.go(-1)">Back</a>
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: back link to the previouse page
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.
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: back link to the previouse page
GCB is the way to go.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: back link to the previouse page
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].
ghadad, if this solution works for you, please let us know and mark this thread [solved].