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.

 

Different template for different domains

Different template for different domains

Hi,

Im trying to setup two domains (for now) to see if i can get them to successfully switch between templates dependant on the domain.

For the purposes of this ive created a rule - Domain - middevon.co.uk sets template style as gk_twn. If fails then go to Beez template.

Whatever i try both urls show the same template. Even if i create two rules that are completely oposite i will still get the same template on both URL's

domains middevon.co.uk and cullomptonian.co.uk

See attached screenshot below

http://middevon.co.uk/chameleon-issue.png

nickcarswell
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Different template for different domains

Hi,

the screenshot shows that Chameleon will test for the domain middevon.co.uk (not the www version), and is that succeeds it sets the template to Beez2. If it fails, it sets the template to gk_twn2. This is the opposite of what you explained above.

In cases like this, Chameleon's Debug mode is a big help. You can get to that in the main Chameleon settings, on the Rule Chain page. Turn on the debug mode, then view your site on the front end. So long as there is a DEBUG module position, you'll see a bunch of info being output about what is being tested, and what actions are being taken. Can you please try that, and I think you'll find out what's going on. Perhap there's another rule before or after the current one that's affecting the output, or something else like that.

Hope that helps,
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
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10796
Newest User:
mokao3
Members Online:
0
Guests Online:
105

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