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
- Write a midcom_helper_datamanager2_schema compatible configuration schema and place it among your component files
- Point a configuration key 'schemadb_config' to it within your component configuration (config/config.inc)
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'), );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
