Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Switching templates based on various...
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
Thanks,
Marius
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
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Switching templates based on various...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Posts this week:
- 2
- User Info:
- Total Users:
- 7642
- Newest User:
- mary26
- Members Online:
- 0
- Guests Online:
- 150
- 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