Open Source Content Management Framework

MidCOM component configuration

  1. Configuration file format
  2. Component's default configuration
  3. Sitegroup-specific configuration

MidCOM components use a configuration system to make their behaviour customizable. The configuration system is based on defining configuration keys with values that the site builder can change.

The configuration can be modified on three different levels:

  • Global configuration shipping with the component: stored in files
  • Sitegroup -specific configuration: stored in snippets
  • Folder -specific configuration: stored in parameters

Configuration file format

The file format used for the configuration file and the sitegroup configuration snippets is in the PHP associative array format but without the starting <?php tags:

'results_per_page' => 10,

Component's default configuration

The default values for component's configuration reside in the component's config/config.inc file.

Sitegroup-specific configuration

Custom configuration snippets for MidCOM components can be placed in config snippet, which is placed in snippet directory /sitegroup-config/<component name>/. This can be done eg. in Aegir on the Snippets tab.

In most components, it is possible to define the default Datamanager schema of the sitegroup and - depending on the component - define an array of schemas to choose from in component configuration in AIS.

Designed by Nemein, hosted by Kafit