Thursday 17 July 2008 6:26:16 am
This is how we've solved it: http://ez.no/developer/forum/developer/running_two_multilingual_sites_on_a_single_ezp_installation It does require adding a few lines to access.php and lib/ezutils/classes/ezsys.php specifically, to access.php:
else if ( $match_type == 'element' )
{
$match_index = $ini->variable( 'SiteAccessSettings', 'URIMatchElement' );
$elements = $uri->elements( false );
$elements = array_slice( $elements, 0, $match_index );
$name = implode( '_', $elements );
//start Contactivity multilingual hack
$hostname=explode(".",$host);
$hostname=explode(":",$hostname[0]);
$language=implode( '_', $elements );
if (!$language)
$language="en";
$name=$hostname[0]."_".$language;
//end Contactivity multilingual hack
}
to ezsys.php:
static function addAccessPath( $path )
{
$instance = eZSys::instance();
if ( !is_array( $path ) )
$path = array( $path );
//start multilingual Contactivity hack
$modified_path=explode("_",implode(",",$path));
$path=array($modified_path[1]);
//end multilingual Contactivity hack
$instance->AccessPath = array_merge( $instance->AccessPath, $path );
}
Certified eZPublish developer
http://ez.no/certification/verify/396111
Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
|