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
Redirect to different homepage based on select
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: Redirect to different homepage based on select
Hello,
why not use the modules FrontEndUser and CustomContent ?
It would allow to make switches in templates :
Pierre M.
why not use the modules FrontEndUser and CustomContent ?
It would allow to make switches in templates :
Code: Select all
<!--customContent: startif group=Policemen -->
-
- Forum Members
- Posts: 85
- Joined: Wed Jun 20, 2007 5:40 pm
Re: Redirect to different homepage based on select
Thank you pierre, will give it a whirl. Havent used those modules before so will be fun...!