The configuration of the I4 web interface is stored in the database, as a gn4 config object named “I4Config”, and its xml root element is I4Config. It is possible to make an I4Config object derive from another I4Object config object, by setting the attribute I4Config/@include to the name of the I4Config object to derive from. In such a way, it is possible to split the configuration in as many files as desired. The “derived” configuration completes or overrides the configuration defined in the included configuration.
As an example, the I4 configuration of both “Tark4” and “Editorial” demo applications are split in 3 or 4 files, and two of them are shared by both applications. So the XXX_InstallConfig.xml files used to install theses demo applications contains the following:
Editorial_InstallConfig.xml:
<!--I4 Configuration-->
<ConfigFile>Global\I4ConfigBase.xml</ConfigFile>
<ConfigFile>Global\GN4_Tark4_Common\I4ConfigArchive.xml</ConfigFile>
<ConfigFile>Global\GN4\I4ConfigEditorial.xml</ConfigFile>
<ConfigFile>Global\GN4\I4Config.xml</ConfigFile>
Tark4_InstallConfig.xml:
<!--I4 Configuration-->
<ConfigFile>Global\I4ConfigBase.xml</ConfigFile>
<ConfigFile>Global\GN4_Tark4_Common\I4ConfigArchive.xml</ConfigFile>
<ConfigFile>Global\Tark4\I4Config.xml</ConfigFile>
Global\GN4\I4Config.xml start with:
<I4Config
include="I4ConfigEditorial"
xmlns="http://www.teradp.com/schemas/GN4/1/I4Configuration.xsd"
...>
Global\GN4\I4ConfigEditorial.xml and Global\Tark4\I4Config.xml start with:
<I4Config
include="I4ConfigArchive"
xmlns="http://www.teradp.com/schemas/GN4/1/I4Configuration.xsd"
...>
Global\GN4_Tark4_Common\I4ConfigArchive.xml starts with:
<I4Config
include="I4ConfigBase"
xmlns="http://www.teradp.com/schemas/GN4/1/I4Configuration.xsd"
...>
And Global\GN4_Tark4_Common\I4ConfigBase.xml starts with:
<I4Config
include=""
xmlns="http://www.teradp.com/schemas/GN4/1/I4Configuration.xsd"
...>
The idea is to associate a I4Config file to a schema file. So, the hierarchy of the schema files involved in GN4 and Tark4 demo applications being as follow:
Then:
-Global\I4ConfigBase.xml contains the I4 configuration relative to object types and attributes defined in GN4Fixed.xsd and GN4Base.xsd.
-Global\GN4_Tark4_Common\I4ConfigArchive.xml contains the I4 configuration relative to object types and attributes defined in GN4Archive.xsd and Tark4Include.xsd.
-Global\GN4\I4ConfigEditorial.xml contains the I4 configuration relative to object types and attributes defined in GN4Editorial.xsd and GN4.xsd.
Note that all the configuration files mentioned above are part of the standard distribution, and they SHOULD NOT be modified in installations “on site”. For “on site” installation, it is suggested to edit one of Global\GN4\I4Config.xml or Global\Tark4\I4Config.xml, as there are blank to have custom config added.