|
Domain Switcher allows you to customize the look of your template based on the the domain name. With this plug-in you can change the template and use the {DomainSwitcher} tag to display content for only certain domain names. This is useful for people who want one Joomla site with multiple domain names, and only have to edit and maintain one domain.
How to
To change templates based on domain. Name your templates directory after the domain name:
For example:
/templates/www.digihaven.ca
/templates/www.digihaven.com
To change the default front page for a domains template:
Set "defaultMenuitem" in prams.ini for the template used for that domain.
for example to make menu ID 123 default for www.digihaven.ca:
Edit templates/www.digihaven.ca/params.ini and add the line: defaultMenuitem=123
To change the text based on domain in a Template ("index.php") or on a Article:
Bellow is an example that shows the usage with the REGEX match tag:
{domainswitch match=".*digihaven.com"}
Welcome to Digihaven.com!
{/domainswitch}{domainswitch match="www.digihaven.ca"}
Welcome to Digihaven.ca!
{/domainswitch}
Note:
Tags work in templates, articles, blogs, and the administrator back-end.
|