Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » How configure MetaTemplate for...
How configure MetaTemplate for template switch with 2 domains?
How configure MetaTemplate for template switch with 2 domains?
Hello!
I just downloaded MetaTemplatePro but I'm stuck.
Despite the posts I read, I can not configure MetaTemplatePro swtich to create a template based on the url.
Let me explain:
If the first visitor (A) come from the site domain01.tld then he will see the template "design01"
If the second visitor (B) come from the site domain02.tld he will see the template "design02"
My website is a virtuemart shop
I tested this code in the php block:
Code:
$ Ref = $ _SERVER ['HTTP_REFERER'];
if ($ ref == 'http://www.domain01.tld')
return "design01";
Same result with template Beez or Rhuk-Milkyway.
Thank you for your help,
Thomas
Re: How configure MetaTemplate for template switch with 2 domains?
Hi Thomas,
since you are using MetaTemplate PRO, you don't need to use PHP for this
You can just use the "Referrer" box in the "Environment" section of the interface.
* Find the Referrer section
* Set the drop-down to "starts with"
* Enter "http://www.domain01.tld/" into the text box
* Then select "design01" with the drop-down box in the SUCCEED action.
Simple
If you want people coming from the other URL to see the second template, then just make a second rule in the rule chain, and set it up the same as the first one, except with the different referrer URL.
Best regards,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » How configure MetaTemplate for...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 158
- 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