Index: trunk/kernel/units/categories/categories_config.php =================================================================== diff -u -r4457 -r4464 --- trunk/kernel/units/categories/categories_config.php (.../categories_config.php) (revision 4457) +++ trunk/kernel/units/categories/categories_config.php (.../categories_config.php) (revision 4464) @@ -33,7 +33,7 @@ 'new_titlefield' => Array('c' => '!la_title_New_Category!'), ), 'category_list' => 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!"), ), @@ -48,17 +48,18 @@ 'priority' => 1, 'type' => stTREE, ), - + 'in-portal:browse' => Array( 'parent' => 'in-portal:site', 'icon' => 'catalog', 'label' => 'la_tab_Browse', 'url' => Array('index_file' => 'browse.php', 'pass' => 'm'), + 'late_load' => Array('t' => 'xml/tree_categories', 'pass' => 'm', 'm_cat_id' => 0), 'permissions' => Array('view'), 'priority' => 1, 'type' => stTREE, ), - + 'in-portal:advanced_view' => Array( 'parent' => 'in-portal:site', 'icon' => 'advanced_view', @@ -68,7 +69,7 @@ 'priority' => 2, 'type' => stTREE, ), - + 'in-portal:reviews' => Array( 'parent' => 'in-portal:site', 'icon' => 'reviews', @@ -78,7 +79,7 @@ 'priority' => 3, 'type' => stTREE, ), - + 'in-portal:configure_categories' => Array( 'parent' => 'in-portal:site', 'icon' => 'cat_settings', @@ -88,7 +89,7 @@ 'priority' => 4, 'type' => stTREE, ), - + 'in-portal:configuration_search' => Array( 'parent' => 'in-portal:site', 'icon' => 'settings_search', @@ -98,7 +99,7 @@ 'priority' => 5, 'type' => stTREE, ), - + 'in-portal:configuration_email' => Array( 'parent' => 'in-portal:site', 'icon' => 'settings_email', @@ -108,7 +109,7 @@ 'priority' => 6, 'type' => stTREE, ), - + 'in-portal:configuration_custom' => Array( 'parent' => 'in-portal:site', 'icon' => 'settings_custom', @@ -118,20 +119,20 @@ 'priority' => 7, 'type' => stTREE, ), - - ), - + + ), + 'ListSQLs' => Array( ''=> ' SELECT %1$s.* %2$s FROM %1$s LEFT JOIN '.TABLE_PREFIX.'PermCache ON '.TABLE_PREFIX.'PermCache.CategoryId = %1$s.CategoryId LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryCustomData cust ON %1$s.ResourceId = cust.ResourceId'), - + 'ItemSQLs' => Array( ''=> ' SELECT %1$s.* %2$s FROM %1$s LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryCustomData cust ON %1$s.ResourceId = cust.ResourceId'), 'SubItems' => Array('c-cdata'), - + 'ListSortings' => Array( '' => Array( 'ForcedSorting' => Array("CurrentSort" => 'asc', 'Priority' => 'desc', 'Name' => 'asc'),