Wednesday 05 September 2007 2:37:00 pm
The French siteaccess is named “fre” by default. For our purposes, we will rename it to “fr” as that is shorter and easier for visitors to remember. To do so, we must make four modifications:
Modify the reference to the French siteaccess in settings/override/site.ini.append.php in two places:
[SiteAccessSettings] AvailableSiteAccessList[]=fr [SiteSettings] SiteList[]=fr
You must also modify the related siteaccess list in each of the siteaccesses' site.ini.append.php files, such as settings/siteaccess/eng/site.ini.append.php. The related siteaccess list is used by the view caching mechanism to clear the cache of all related siteaccesses that share the same database, whenever a content object is created or updated.
[SiteSettings] RelatedSiteAccessList[] = fr
(If all of your siteaccesses use the same database, as is the case in this example, you can enter the list of all siteaccesses in RelatedSiteAccesstList[] in settings/override/site.ini.append.php, which will negate the need to edit the INI file each individual siteaccess.)
We will also rename the Administration Interface siteaccess to make it easier for site administrators and editors to remember. To do so, we must perform the same first two steps from when we renamed the French siteaccess, but change “ezwebin_site_admin” to “tennis_admin”.
There is an additional setting that must be changed in the site.ini.append.php file for both the English and French siteaccesses (in settings/siteaccess/eng/ and settings/siteaccess/fr/). Under the [SiteSettings] block is the setting for the form redirection whenever someone logs in through the front-end of the site and marks the Log in to the eZ Publish Administration Interface checkbox.
This setting must be changed in site.ini.append.php for both language siteaccesses:
AdditionalLoginFormActionURL=http://tennisdemo.ezsystems.ca/index.php/ezwebin_site_admin/user/login
Remove the “index.php” part of the URL and rename the Administration Interface siteaccess as is appropriate:
AdditionalLoginFormActionURL=http://tennisdemo.ezsystems.ca/tennis_admin/user/login