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.

 

Switching templates based on various subdomains

Switching templates based on various subdomains

Hi Stephen,
I'm not sure if I should post it here or in Chameleon section. That's what I'd like to get: I have few subdomains, but not all of them as important as 1 sudomain and obviously the main domain. I'm thinking about seting up a mobile templete, initially for one subdomain only. So the system should check first what domain the entry is from. If from the importantsubomain.domain.tld it swithes template to mobile, if the entry is from any other sudomain or main domain nothing happens (it loads default template). I presume to check the domain's name MetaMod will do the job, which I already have. To switch template I probably need Chameleon, wich I need to buy. And I will, but I just want to make sure it's possible first smile
Thanks,
Marius

mariuszstach
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Re: Switching templates based on various subdomains

Hi Marius,

yes, this is a job for Chameleon, as MetaMod can't switch templates.

In Chameleon it's easy to set up a rule that checks for 2 things:

1 - subdomain is importantsubomain.domain.tld
2 - device is mobile

In Chameleon there's a form control for each of those so it's really easy to set up. Then you just select the template/style you want to use from a drop down so no PHP coding is required in this case.

Best regards,
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:
4
User Info:
 
Total Users:
4383
Newest User:
kingpen99
Members Online:
0
Guests Online:
107

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