Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Change template on different subdomain
Change template on different subdomain
Change template on different subdomain
Hello,
I've been following the video tutorial "Switch template according to entry URL, then remember template for the rest of the session".
http://www.youtube.com/watch?v=ku8q9rJQ … r_embedded
I would like to do almost the exact thing, but based on different domain names.
Could you help and indicate the good steps ?
Regards
07-May-12 16:02:38
Re: Change template on different subdomain
Hi,
I assume that once people enter on a certain domain name, they will stay on that domain name. If that's the case, then you don't need cookies or session variables. In fact, cookies and session variables are tied to the specific domain that the user is on, so if they swap domains the cookies or session variables from the previous domain won't even be accessible to Joomla.
So, to use the domain to trigger certain templates or menu item removal or other actions, just use the "Domain name(s)" control in the "Environment" section to enter one or more (comma-separated) domain names. If the user is on one of the listed domain names, the rule will succeed and will run the succeed action.
e.g. if you have these 2 domains:
foo.example.com
bar.example.com
... then you could set up 2 Chameleon rules:
In the 1st - enter foo.example.com into the Domain name(s) box, and in the succeed action select the desired template for that domain
In the 2nd - enter bar.example.com into the Domain name(s) box, and in the succeed action select the desired template for that domain
Cheers,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Change template on different subdomain
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 0
- Guests Online:
- 172
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked