Avoid the setup wizard affecting the entire installation

Author Message

Eirik Alfstad Johansen

Friday 19 March 2004 4:45:46 am

Hi guys,

One of the projects I'm working on will be an ezp ASP running one installation, and with separate siteaccesses for each site and accompanying admin interface.

One of the things that needs to be done is therefore to create a setup wizard that can be run for each site, similar to the default setup process for ezp, but hiding some of the options (like db options which will be set by a preceeding script).

I was hoping that I might be able to modify the setup process to suit my needs, and to test, I setup an ezp installation, created a new siteaccess with some default INI settings and CheckValidity set to enabled.

This ran, of course, the setup process for the new siteaccess, but instead of applying the selected settings to simply this one siteaccess, it reset the settings for the entire installation.

So my question is this:

Is there a setting to ensure that a setup process is only applied to the selected siteaccesses instead of the entire installation?

And if not, where in the kernel should I start looking in order to change this manually?

Thanks in advance !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Sunday 02 May 2004 8:44:28 am

Could someone from the ez crew please address this issue?

Thanks in advance !

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Sunday 02 May 2004 3:12:29 pm

I assume you have looked in the files within 'kernel/setup'. I think all the rules used are in there, especially with the subdirectory 'steps'.

paul

--
http://www.visionwt.com

Jan Borsodi

Sunday 02 May 2004 11:20:33 pm

The file kernel/setup/steps/ezstep_create_sites.php does the entire site initialization.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Eirik Alfstad Johansen

Tuesday 11 May 2004 12:27:49 am

Hi Paul and Jan,

Thanks for your answers!

I have browsed through the files in kernel/setup and kernel/setup/steps. So far I've modified the kernel/setup/steps/ezstep_create_sites.php in order to keep the existing available site accesses in settings/override/site.ini.append from being overwritten (BTW: why is this not the default behaviour?).

My next goal is to hide some of the steps in the setup wizard completely, and others partially and instead provide default values. My first step here was to remove some of the values from the $Steps array at the bottom of kernel/setup/steps/ezstep_data.php, but when I ran the setup wizard again after this, all the steps were still performed (I did clear the cache).

Any other place where the setup wizard steps are defined?

Thanks in advance !

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Tuesday 11 May 2004 12:41:37 am

The array $StepTable should be the only place where you need to make changes to remove steps. Have you sprinkled a few print statements around to find out whats happening with the code?

paul

--
http://www.visionwt.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.