Thursday 30 November 2006 12:27:35 am
Hi You can do that by creating multiple siteaccess. For example:
settings/siteaccess/yoursite (english)
settings/siteaccess/yoursite_es (spanish) settings/siteaccess/yoursite_fr (french) I explain you how to setup yoursit_es for example: Inside the yoursite_es folder, create a file called site.ini.append.php. On a 3.8.6 version of eZ Publish it must contain something like this: Example of site.ini.append.php for your default siteaccess (yoursite) in english:
<?php /* #?ini charset="utf-8"?
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=your_mysql_username
Password=your_mysql_password
Database=your_database_name
[SiteSettings]
SiteName=Your_site_name
LoginPage=embedded
IndexPage=/content/view/full/2
[SiteAccessSettings]
RequireUserLogin=false
ShowHiddenNodes=false
[DesignSettings]
SiteDesign=your_custom_design_folder_name
AdditionalSiteDesignList[]=base
AdditionalSiteDesignList[]=standard
[ContentSettings]
TranslationList=
ViewCaching=disabled
[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
TextTranslation=enabled
[FileSettings]
VarDir=your_var_folder
/* If you work with extensions */
[ExtensionSettings]
ActiveAccessExtensions[]=your_extension_folder_name
*/ ?>
Example of site.ini.append.php for yoursite_es siteaccess (spanish):
<?php /* #?ini charset="utf-8"?
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=your_mysql_username
Password=your_mysql_password
Database=your_database_name
[SiteSettings]
SiteName=your_site_name
LoginPage=embedded
IndexPage=/content/view/full/2
[SiteAccessSettings]
RequireUserLogin=false
ShowHiddenNodes=false
[DesignSettings]
SiteDesign=your_custom_design_folder_name
AdditionalSiteDesignList[]=base
AdditionalSiteDesignList[]=standard
[ContentSettings]
TranslationList=
ViewCaching=disabled
[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES
TextTranslation=enabled
TranslationExtensions[]=your_translations_extension
[FileSettings]
VarDir=your_var_folder
/* If you work with extensions */
[ExtensionSettings]
ActiveAccessExtensions[]=your_extension_folder_name
*/ ?>
Now all you need to do is activate the new siteaccess in settings/override/site.ini.append.php:
<?php /* #?ini charset="utf-8"?
[Session]
SessionNameHandler=custom
[SiteSettings]
DefaultAccess=your_site_name
SiteList[]=your_site_name
[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=yoursite
AvailableSiteAccessList[]=yoursite_es
MatchOrder=uri
HostMatchMapItems[]
[MailSettings]
Transport=sendmail
AdminEmail=your_admin_email
*/ ?>
Now clear all caches and try to access to both siteaccess:
www.example.com/yoursite www.example.com/yoursite_es Cheers.
Microblau SL
http://www.microblau.net
|