Hosting Geared For
your CMSMS needs
Hosting Starting at $15
- • Hosted Mail
- • Personal Control Panel
- • CMSMS 1.8.1 tested
- • Lightly packed servers
- • Intrusion Detection
- • URL monitored
- • Custom solutions available
CP Blogs
Dynamic Redirect / Return for FEU
Posted by: Jeremy Bass
on May 24, 2009
Category:
CMS Made Simple, My Top CMSMS tricks, Smarty, Intermediate, Coding
Summary:
Hello, so I had a need to have a user that was logging in to come back to the page they linked the log-in link on. So this is how it's done.
Ad Space
Hello, so I had a need to have a user that was logging in to come back to the page they linked the log-in link on. So this is how it's done.
1.) in you page call you want to do this... {cms_module module=FrontEndUsers form="login" returnto=$smarty.get.rL} 2.) now you want to add "rL" the to the URL of the link leading to the log-in page {cms_selflink page='Log-in' text='login' assign ='LogInLink'}{$LogInLink|replace:".html":".html?rL=`$content_id`"} 3.)and you want to hold the "rl" thru the form process like this in the Log-in Template {$startform|replace:".html":".html?rL=`$smarty.get.rL`"} and now when the user click on the link to log in they will land back on the page they started with... simple
Cheers
jeremyBass
Ad Space












Get Social With It
[+]Add A Comment
[+]