Page 1 of 1

Custom redirect after login

Posted: Fri Sep 20, 2013 3:36 pm
by tophers
We've built an extranet for a client, and now they've requested a new feature - highlights from various modules on the login page, hoping to entice their employees to login and view the site. The login isn't the default page - the home page checks to see if you're logged in, and if not you are redirected to a login page.

My question is - can I have a non-logged in user click on an article on the login screen (say News, Calendar or Blog), capture the link to that article, trigger a modal window to prompt them to log in, then upon successful login direct them to the article they clicked on?

I'm running CMSMS 1.11.7, but we can upgrade if this functionality requires it.

Re: Custom redirect after login

Posted: Fri Sep 20, 2013 3:46 pm
by calguy1000
You'd prolly have to do it via a combination of javascript, a cookie or custom url parameter, and some smarty magic.

Re: Custom redirect after login

Posted: Fri Sep 20, 2013 7:52 pm
by tophers
That's what we were thinking - at this point though I'm not sure where to start. Anyone out there tackled something similar?