Open Source Content Management System

midcom.helper.dm2config

This purecode component is a helper that makes it easy to use midcom.helper.datamanager2 schema for configuration. The advantage is to use e.g. up-to-date schema widgets, like universal chooser and such.

Simple instructions on using it

  1. Write a midcom_helper_datamanager2_schema compatible configuration schema and place it among your component files
  2. Point a configuration key 'schemadb_config' to it within your component configuration (config/config.inc)
  3. Refer to DM2 component configuration helper with a request handler, e.g.

    $this->_request_handler'config' = array
    (
        'handler' => array ('midcom_helper_dm2config_config', 'config'),
        'fixed_args' => array ('config'),
    );
    
  4. Remember to include midcom.helper.dm2config as a requirement in config/manifest.inc and to set it in $this->_autoload_libraries in midcom/interfaces.php

Designed by Nemein, hosted by Anykey