Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

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

Edited By: agussol
07-May-12 15:02:38

agussol
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4397
Newest User:
tull687318
Members Online:
0
Guests Online:
171

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