Redirect to different homepage based on select

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
essexboyracer
Forum Members
Forum Members
Posts: 85
Joined: Wed Jun 20, 2007 5:40 pm

Redirect to different homepage based on select

Post 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
Pierre M.

Re: Redirect to different homepage based on select

Post 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.
essexboyracer
Forum Members
Forum Members
Posts: 85
Joined: Wed Jun 20, 2007 5:40 pm

Re: Redirect to different homepage based on select

Post by essexboyracer »

Thank you pierre, will give it a whirl. Havent used those modules before so will be fun...!
Locked

Return to “[locked] Installation, Setup and Upgrade”