back link to the previouse page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ghadad
Forum Members
Forum Members
Posts: 15
Joined: Mon Dec 08, 2008 9:06 pm

back link to the previouse page

Post 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
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: back link to the previouse page

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: back link to the previouse page

Post by calguy1000 »

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.
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: back link to the previouse page

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: back link to the previouse page

Post by calguy1000 »

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.
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: back link to the previouse page

Post 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].
Post Reply

Return to “CMSMS Core”