Page 1 of 1

Redirect to different homepage based on select

Posted: Wed Sep 12, 2007 3:08 pm
by essexboyracer
Hi All,

Just floating an idea to see if it would be feasable. We need one cmsms based website, but serving different pages depending on who is viewing (out of two). My idea is that there is a splash page e.g. www.domain/index.html which would check for a cookie, if it doesnt find one, it asks the user whether they are say a policeman or abulance driver and optionally saves their choice for next time. They then select which group they fall into and are directed to www.domiain.com/police or www.domain.com/abulance. If a user lands up on the site without going through the entrance/splash/landing page, code at the top of the cmsms template checks for the cookie, if it finds it lets them in, if not boots tham back to /index.html and asks them who they are again?

Does this sound like a setup that could be performed by hacking around with cookies?

EBR

Re: Redirect to different homepage based on select

Posted: Wed Sep 12, 2007 6:02 pm
by Pierre M.
Hello,

why not use the modules FrontEndUser and CustomContent ?
It would allow to make switches in templates :

Code: Select all

<!--customContent: startif group=Policemen -->
Pierre M.

Re: Redirect to different homepage based on select

Posted: Thu Sep 13, 2007 9:55 am
by essexboyracer
Thank you pierre, will give it a whirl. Havent used those modules before so will be fun...!