Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

Re: Sequence of the override files

"I think, for example, that the database settings in the global override directory SHOULD be overrided by the database settings in the siteaccess. Otherwise if we have several databases for multisites, the different databases settings in the different siteaccess are overrided by the same database sittings in the global overrides, some sites would't work."

In that case, you should not use the global override to set the database settings. You would have to set the database settings in every site's siteaccess file.
  • Re: Re: Sequence of the override files

    Supposing multisites include many sites with the same database, for instance, 10 sites. I can set the database db in the global overrides only one time. Some day I want to site1 with a separate database db1. How can I do?

    According to your sequence to read the configuration files:
    1. Default configuration settings (/settings/*.ini)
    2. Siteaccess settings (/settings/siteaccess/[name_of_siteaccess]/*.ini.append.php)
    3. Global overrides (/settings/override/*.ini.append.php)

    I have to:
    --- set the db1 in this siteaccess setting file for site1;
    --- delete the db settings in the global override file, or db1 will be overrided by db settings;
    --- set the same db one by one in other siteaccess setting files, 9 files for this example.

    But according to the following sequence to read the configuration files:
    1. Default configuration settings (/settings/*.ini)
    2. Global overrides (/settings/override/*.ini.append.php)
    3. Siteaccess settings (/settings/siteaccess/[name_of_siteaccess]/*.ini.append.php)

    I only need set the db1 in this siteaccess setting file for site1, that's all.

    I needn't delete the db settings in the global override file, because the db will be overrite by db1. Also I don't worry about other sites. Do nothing for other 9 sites.

    Think about other setting parameters, there is the same situation. That's why I think the latter seems more LOGIC.

Anonymous User (12/08/2005 8:48 pm)

Anonymous User (12/08/2005 8:49 pm)


Comments

  • Re: Re: Sequence of the override files

    Supposing multisites include many sites with the same database, for instance, 10 sites. I can set the database db in the global overrides only one time. Some day I want to site1 with a separate database db1. How can I do?

    According to your sequence to read the configuration files:
    1. Default configuration settings (/settings/*.ini)
    2. Siteaccess settings (/settings/siteaccess/[name_of_siteaccess]/*.ini.append.php)
    3. Global overrides (/settings/override/*.ini.append.php)

    I have to:
    --- set the db1 in this siteaccess setting file for site1;
    --- delete the db settings in the global override file, or db1 will be overrided by db settings;
    --- set the same db one by one in other siteaccess setting files, 9 files for this example.

    But according to the following sequence to read the configuration files:
    1. Default configuration settings (/settings/*.ini)
    2. Global overrides (/settings/override/*.ini.append.php)
    3. Siteaccess settings (/settings/siteaccess/[name_of_siteaccess]/*.ini.append.php)

    I only need set the db1 in this siteaccess setting file for site1, that's all.

    I needn't delete the db settings in the global override file, because the db will be overrite by db1. Also I don't worry about other sites. Do nothing for other 9 sites.

    Think about other setting parameters, there is the same situation. That's why I think the latter seems more LOGIC.