This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Override and SiteAccess ini problem
expandshrink

Override and SiteAccess ini problem

Override and SiteAccess ini problem

Thursday 03 April 2003 4:07:55 pm - 7 replies

I have those inifiles :

settings/site.ini
settings/override/site.in.append.php
settings/siteaccess/site.in.append.php

I think those files should be read in that order but eZ read them on this order :

settings/site.ini
settings/siteaccess/site.in.append.php
settings/override/site.in.append.php

So my SiteAccess has no meaning!

I changed prependOverrideDir for appendOverrideDir on line 411 of /access.php $ini->appendOverrideDir( "siteaccess/$name" );

Is that the correct way to go or there is something I am missing?

Modified on Thursday 03 April 2003 4:08:19 pm by Vincent Saulnier

Tuesday 08 April 2003 4:09:46 pm

I've always used (and been directed to use) site.ini.php, NOT site.ini for global setting changes.

Then, for each site-access match, whether by uri, host, or port

settings/siteaccess/[match]/site.ini.append

Tuesday 08 April 2003 5:13:56 pm

You should not change the order like that, this will invalidate any upgrades of future eZ publish versions.

The order of .ini file reading is not a problem if you setup the files correctly. First off settings/override is always the last file to be read and will override any values from original .ini files and siteaccess.

Things to put in override is global settings that should be set for ALL siteaccesses and siteaccess matching rules. Placing the matching rules in a siteaccess won't work.

If you want a value to be set for most siteaccess except one you need to copy the values to all siteaccesses and modify it on the one that will differ.

Tuesday 08 April 2003 9:16:45 pm

You have to understand what I think it was suppose to do :

settings/site.ini is the original file that come wiht eZPublish

settings/override/site.ini.append.php is the suggested file where we should put our configuration so that we can easily upgrade eZPublish

settings/siteaccess/user/site.ini.append is the original site access configuration file that comes with a brand new eZPublish installation. And in this file it says :

# NOTE: It is not recommended to edit this files directly, instead
# a new siteacces should be made to suit your needs.
# General settings should be placed in the settings/override
# directory using .append files.

I could'nt find a place to put the override file for a siteaccess so I had to change the order to make it work the proper way.

if settings/override/site.in.append.php is the last configuration file to be considered, setting/siteaccess/site.in.append is obsolete...

Am I right?

Wednesday 09 April 2003 8:52:03 am

Hi Vincent,

the site.ini comes with default values, that's true. But this file is also the one which should contain all your configuration. If you want a back up file, just make a copy before installing.

The override is actually as Jan said only a helper thing. For example, if you develop a site with CVS each developer could put an override to reflect local settings.

More info on this here:
http://ezwiki.blanko.info/index.p...0directories%20explained%20%283.x%29
and here:
http://ezwiki.blanko.info/index.p...i%20or%20site.ini.php%3F%20%283.x%29

Regards,
Karsten

Wednesday 09 April 2003 3:35:21 pm

When you install setup with setup enabled, it creates an override site.ini.append.php.

So, if we use the setup module, we cannot use SiteAccess!?

Not very usefull isn't it???

P.S. In every settings/siteaccess/site.in.append files it's written :

# eZ publish configuration file.
#
# NOTE: It is not recommended to edit this files directly, instead
# a new siteacces should be made to suit your needs.
# General settings should be placed in the settings/override
# directory using .append files.

If it does'nt work: what does it means?

Thursday 10 April 2003 9:53:58 am

I rewrote the ezwiki page because some things changed when eZ publish 3.0 was released. Have a look at http://ezwiki.blanko.info/index.p...0directories%20explained%20%283.x%29 again. This should explain now how it works.

Kai

Thursday 10 April 2003 5:37:54 pm

I read the revised page at wiki and that's exacly what I thought it does.

Don't you think it would be a good idea to have the possibility to have something like that :

settings/override/siteaccess/[SiteAccess]/site.ini.append.php

So that siteaccess is the last ini file to override and that if we change some configurations in siteaccess an upgrade of eZPublish would be easier...

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from