Index: trunk/kernel/units/modules/modules_config.php =================================================================== diff -u -N -r2060 -r4577 --- trunk/kernel/units/modules/modules_config.php (.../modules_config.php) (revision 2060) +++ trunk/kernel/units/modules/modules_config.php (.../modules_config.php) (revision 4577) @@ -12,30 +12,56 @@ 1 => 'id', 2 => 'page', 3 => 'event', + 4 => 'mode', ), + 'IDField' => 'Name', 'TitleField' => 'Name', // field, used in bluebar when editing existing item + 'StatusField' => Array('Loaded'), + + 'TitlePresets' => Array( + + 'modules_list' => Array( 'prefixes' => Array('mod_List'), 'format' => "!la_title_Configuration! - !la_title_Module_Status! (#mod_recordcount#)"), + + ), + 'TableName' => TABLE_PREFIX.'Modules', 'ListSQLs' => Array( ''=>'SELECT * FROM %s', ), // key - special, value - list select sql 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', ), - 'ListSortings' => Array(), + 'ListSortings' => Array( + '' => Array( + 'Sorting' => Array('LoadOrder' => 'asc'), + ) + ), + 'Fields' => Array( - 'Name' => Array('type' => 'string','not_null' => '1','default' => ''), - 'Path' => Array('type' => 'string','not_null' => '1','default' => ''), - 'Var' => Array('type' => 'string','not_null' => '1','default' => ''), - 'Version' => Array('type' => 'string','not_null' => '1','default' => ''), - 'Loaded' => Array('type' => 'int','not_null' => '1','default' => '1'), - 'LoadOrder' => Array('type' => 'int','not_null' => '1','default' => '0'), - 'TemplatePath' => Array('type' => 'string','not_null' => '1','default' => ''), - 'RootCat' => Array('type' => 'int','not_null' => '1','default' => '0'), - 'BuildDate' => Array('type' => 'double','not_null' => '1','default' => '0'), + 'Name' => Array('type' => 'string','not_null' => '1','default' => ''), + 'Path' => Array('type' => 'string','not_null' => '1','default' => ''), + 'Var' => Array('type' => 'string','not_null' => '1','default' => ''), + 'Version' => Array('type' => 'string','not_null' => '1','default' => ''), + 'Loaded' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array(1 => 'la_Enabled', 0 => 'la_Disabled'), 'use_phrases' => 1, 'not_null' => '1','default' => '1'), + 'LoadOrder' => Array('type' => 'int','not_null' => '1','default' => '0'), + 'TemplatePath' => Array('type' => 'string','not_null' => '1','default' => ''), + 'RootCat' => Array('type' => 'int','not_null' => '1','default' => '0'), + 'BuildDate' => Array('type' => 'double', 'formatter' => 'kDateFormatter', 'not_null' => '1','default' => ''), ), + 'VirtualFields' => Array(), - 'Grids' => Array(), + 'Grids' => Array( + 'Default' => Array( + 'Icons' => Array('default' => 'icon16_custom.gif'), + 'Fields' => Array( + 'Name' => Array('title' => 'la_col_Name', 'data_block' => 'grid_checkbox_td_no_icon'), + 'Loaded' => Array('title' => 'la_col_Status'), + 'Version' => Array('title' => 'la_col_Version'), + ), + + ), + ), ); ?> \ No newline at end of file