Hi Guys
I´m using Babel to a multilingue website.
I have two domains -
domain1.co.uk and
domain2.com - where
domain1.co.uk it´s my main domain (default of my web context).
My
domain2.com it´s pointed to the same server of my domain1.co.uk and i´m routing each domain with the gateway plugin suggested for Babel´s instalation :
<?php
if($modx->context->get('key') != "mgr"){
//grab the current domain from the http_host option
switch ($modx->getOption('http_host')) {
case 'www.domain2.com':
//switch the context
$modx->switchContext('de');
//set the cultureKey
$modx->setOption('cultureKey', 'de');
break;
default:
// Set the default language/context here
$modx->switchContext('web');
$modx->setOption('cultureKey', 'en');
break;
}
}
The domain settings are:
Context Settings for domain1.co.uk
cultureKey - en
site_url -
http://www.domain1.co.uk/
Access Permissions for domain1.co.uk
Member - Load Only - 9999
------
Context Settings for domain2.com
cultureKey - de
site_url -
http://www.domain2.com/
Access Permissions for domain2.com
Member - Load Only - 9999
I just followed the information describbed here -
http://www.multilingual-modx.com/blog/2011/multilingual-websites-with-modx-and-babel.html - on official Babel´s site.
But the problem is that the Babel plugin it´s not routing my
domain2.com to the
de context!!!What i´m doing wrong?
Many thanks in advance
Nuno