Return

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.
Locked
lilahunt

Return

Post by lilahunt »

Hi,

I want to put a return button in my search module and on another page in my site.
I want the return to work just like the news module's return button.

When I took the return code from the news module and put it in my other templates it didn't work. I used the tag {return_url}

Any help would be greatly appreciated.

Thanks
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Return

Post by calguy1000 »

use cms_selflink
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
Franck
Dev Team Member
Dev Team Member
Posts: 261
Joined: Tue Jun 12, 2007 1:29 pm

Re: Return

Post by Franck »

I want the same thing but can't see which parameter of cms_selflink I must use to achieve this. Any clue ?
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 261
Joined: Tue Jun 12, 2007 1:29 pm

Re: Return

Post by Franck »

just in case someone needs it : a return link to previous visited page, like clicking the browser's back button can be done with the use of javascript :

Code: Select all

<__script__ language=javascript>
document.write("<a href='"+document.referrer+"'>Back</a>")
</__script>
Locked

Return to “CMSMS Core”