Share » Learn » eZ Publish » How to Configure an eZ Publish Site

How to Configure an eZ Publish Site

Wednesday 05 September 2007 2:37:00 pm

  • Currently 4 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

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:

  • Rename the folder /settings/siteaccess/fre to /settings/siteaccess/fr
  • 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.)

  • Modify the anonymous user access permissions in the Administration Interface.Access the User accounts tab, then click on the Roles and policies link on the left menu. Edit the role for the Anonymous user, then edit the user/login policy that is now blank, in order to add the new siteaccess name “fr”. Click the OK button to save your changes.

  • Edit the Anonymous role
  • Edit the top left language links. We will describe this later in this article, as these links are currently hidden in our imported site design.

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
36 542 Users on board!

Tutorial menu

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)