Index: trunk/core/units/custom_fields/custom_fields_config.php =================================================================== diff -u -N -r4000 -r4029 --- trunk/core/units/custom_fields/custom_fields_config.php (.../custom_fields_config.php) (revision 4000) +++ trunk/core/units/custom_fields/custom_fields_config.php (.../custom_fields_config.php) (revision 4029) @@ -5,7 +5,7 @@ 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'), 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'), 'EventHandlerClass' => Array('class'=>'CustomFieldsEventHandler','file'=>'custom_fields_event_handler.php','build_event'=>'OnBuild'), - 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'), + 'TagProcessorClass' => Array('class'=>'CustomFieldsTagProcessor','file'=>'custom_fields_tag_processor.php','build_event'=>'OnBuild'), 'AutoLoad' => true, 'hooks' => Array(), 'QueryString' => Array( @@ -57,10 +57,15 @@ ), // key - special, value - list select sql 'ListSortings' => Array( - '' => Array( - 'ForcedSorting' => Array('DisplayOrder' => 'asc'), - 'Sorting' => Array('FieldName' => 'asc'), - ) + '' => Array( + 'ForcedSorting' => Array('DisplayOrder' => 'asc'), + 'Sorting' => Array('FieldName' => 'asc'), + ), + + 'general' => Array( + 'Sorting' => Array('DisplayOrder' => 'asc') + ), + ), 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', @@ -79,7 +84,9 @@ 'DisplayOrder' => Array('type' => 'int','not_null' => '1','default' => '0'), 'OnGeneralTab' => Array('type' => 'int','not_null' => '1','default' => '0'), ), - 'VirtualFields' => Array(), + 'VirtualFields' => Array( + 'Value' => Array('type' => 'string', 'default' => ''), + ), 'Grids' => Array( 'Default' => Array( @@ -92,6 +99,15 @@ ), ), + 'SeparateTab' => Array( + 'Icons' => Array('default'=>'icon16_custom.gif'), + 'Fields' => Array( + 'FieldName' => Array( 'title'=>'la_col_FieldName', 'data_block' => 'grid_icon_td'), + 'Prompt' => Array( 'title'=>'la_col_Prompt', 'data_block' => 'grid_data_label_ml_td' ), + 'Value' => Array( 'title'=>'la_col_Value', 'data_block' => 'edit_custom_td'), + ), + ), + ), );