Index: trunk/kernel/units/categories/categories_config.php =================================================================== diff -u -r4689 -r4996 --- trunk/kernel/units/categories/categories_config.php (.../categories_config.php) (revision 4689) +++ trunk/kernel/units/categories/categories_config.php (.../categories_config.php) (revision 4996) @@ -47,7 +47,9 @@ 'new_titlefield' => Array('c' => '!la_title_New_Category!'), ), 'category_list' => Array('prefixes' => Array('c_List'), 'format' => "!la_title_Categories! (#c_recordcount#)"), - + + 'catalog' => Array('prefixes' => Array('c_List'), 'format' => "!la_title_Categories! (#c_recordcount#)"), + 'category_items'=> Array('prefixes' => Array('c'), 'format' => "#c_status# '#c_titlefield#' - !la_title_Items!"), 'tree_site' => Array('format' => '!la_selecting_categories!'), @@ -77,6 +79,18 @@ 'priority' => 1, 'type' => stTREE, ), + + 'in-portal:browse_new' => Array( + 'parent' => 'in-portal:site', + 'icon' => 'catalog', + 'label' => 'la_K4_Catalog', + 'url' => Array('t' => 'catalog', 'pass' => 'm'), + 'late_load' => Array('t' => 'xml/tree_categories', 'pass' => 'm', 'm_cat_id' => 0), + 'onclick' => 'checkCatalog(0)', + 'permissions' => Array('view'), + 'priority' => 1.1, + 'type' => stTREE, + ), 'in-portal:advanced_view' => Array( 'parent' => 'in-portal:site', @@ -152,11 +166,12 @@ 'SubItems' => Array('c-cdata', 'c-perm'), 'ListSortings' => Array( - '' => Array( - 'ForcedSorting' => Array("CurrentSort" => 'asc', 'Priority' => 'desc', 'Name' => 'asc'), - 'Sorting' => Array('Name' => 'asc'), - ) - ), + '' => Array( + 'ForcedSorting' => Array("CurrentSort" => 'asc', 'Priority' => 'desc', 'Name' => 'asc'), + 'Sorting' => Array('Name' => 'asc'), + ) + ), + 'CalculatedFields' => Array( '' => Array( 'CurrentSort' => "REPLACE(ParentPath, CONCAT('|', ".'%1$s'.".CategoryId, '|'), '')", @@ -203,13 +218,16 @@ 'Grids' => Array( 'Default' => Array( - 'Icons' => Array('default'=>'icon16_cat.gif'), - 'Fields' => Array( - 'Name' => Array( 'width'=>150, 'title'=>'la_col_Title', 'data_block'=>'category_td' ), - ), + 'Icons' => Array('default'=>'icon16_cat.gif'), + 'Fields' => Array( + 'Name' => Array('title' => 'la_col_Name', 'data_block' => 'category_td'), + 'Description' => Array('title' => 'la_col_Description'), + 'CreatedOn_formatted' => Array('title' => 'la_col_CreatedOn', 'sort_field' => 'CreatedOn'), + ), - ), ), + ), + 'ConfigMapping' => Array( 'PerPage' => 'Perpage_Category', 'DefaultSorting1Field' => 'Category_Sortfield',