Wednesday 05 May 2010 8:41:00 am
the best method as far as I can see is to create a siteaccess for each language: In your settings/override/site.ini.append.php file:
[SiteAccessSettings]
AvailableSiteAccessList[]=fr
AvailableSiteAccessList[]=en AvailableSiteAccessList[]=de then create the folders in these files:
settings/siteaccess/fr/site.ini.append.php
settings/siteaccess/de/site.ini.append.php settings/siteaccess/en/site.ini.append.php You will need to set the appropriate values in this section:
-----------------------
[DesignSettings]
SiteDesign=en
AdditionalSiteDesignList[]=base
[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
SiteLanguageList[]=eng-GB ---------------------- Or for the english version:
-----------------
[DesignSettings]
SiteDesign=fr
AdditionalSiteDesignList[]=base
[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR SiteLanguageList[]=fre-FR ----------------------
You will then be able to position the overrides of your files in the correct folder and you will be rolling:
In your siteaccess design exemple:
extension/mysite_extension/design/fr/templates/pagelayout.tpl
extension/mysite_extension/design/en/templates/pagelayout.tpl
If you empty the cache at this point and activate your debug, you will know see the files you use for each siteaccess, and you can write whatever logic you wish, for each language. In the backoffice, you will just need to correctly configure the anonymous write access, for each siteaccess like I explained earliser today on this link. in order to view the files, and create the content you wish for each siteaccess. There are other methods but this is the most, ezpublish friendly way of doing it, as far as I can see.
|