Index: trunk/core/units/categories/categories_config.php =================================================================== diff -u -N -r5496 -r6093 --- trunk/core/units/categories/categories_config.php (.../categories_config.php) (revision 5496) +++ trunk/core/units/categories/categories_config.php (.../categories_config.php) (revision 6093) @@ -11,7 +11,11 @@ Array('pseudo' => 'kPermCacheUpdater','class' => 'kPermCacheUpdater', 'file' => 'cache_updater.php','build_event'=>''), ), - 'AutoLoad' => true, + 'AutoLoad' => true, + 'CatalogItem' => true, + 'AdminTemplatePath' => 'categories', + 'AdminTemplatePrefix' => 'categories_', + 'QueryString' => Array( 1 => 'id', 2 => 'page', @@ -30,6 +34,7 @@ 'StatusField' => Array('Status'), 'TitleField' => 'Name', // field, used in bluebar when editing existing item + 'TitlePhrase' => 'la_Text_Category', 'ItemType' => 1, // used for custom fields only 'StatisticsInfo' => Array( @@ -55,6 +60,8 @@ 'catalog' => Array('prefixes' => Array('c_List'), 'format' => "!la_title_Categories! (#c_recordcount#)"), + 'advanced_view' => Array('prefixes' => Array('c_List'), 'format' => "!la_title_AdvancedView!"), + 'categories_edit' => Array('prefixes' => Array('c'), 'format' => "#c_status# '#c_titlefield#' - !la_title_General!"), 'categories_properties' => Array('prefixes' => Array('c'), 'format' => "#c_status# '#c_titlefield#' - !la_title_Properties!"), 'categories_relations' => Array('prefixes' => Array('c'), 'format' => "#c_status# '#c_titlefield#' - !la_title_Relations!"), @@ -63,28 +70,28 @@ 'categories_custom' => Array('prefixes' => Array('c'), 'format' => "#c_status# '#c_titlefield#' - !la_title_Custom!"), 'categories_update' => Array('prefixes' => Array(), 'format' => "!la_title_UpdatingCategories!"), - + 'images_edit' => Array( 'prefixes' => Array('c', 'c-img'), 'new_status_labels' => Array('c-img'=>'!la_title_Adding_Image!'), 'edit_status_labels' => Array('c-img'=>'!la_title_Editing_Image!'), 'new_titlefield' => Array('c-img'=>'!la_title_New_Image!'), 'format' => "#c_status# '#c_titlefield#' - #c-img_status# '#c-img_titlefield#'", ), - + 'relations_edit' => Array( 'prefixes' => Array('c', 'c-rel'), 'new_status_labels' => Array('c-rel'=>"!la_title_Adding_Relationship! '!la_title_New_Relationship!'"), 'edit_status_labels' => Array('c-rel'=>'!la_title_Editing_Relationship!'), 'format' => "#c_status# '#c_titlefield#' - #c-rel_status#", ), - + 'tree_site' => Array('format' => '!la_selecting_categories!'), ), - + 'PermItemPrefix' => 'CATEGORY', - + 'PermSection' => Array('main' => 'CATEGORY:in-portal:categories', /*'search' => 'in-portal:configuration_search',*/ 'email' => 'in-portal:configuration_email', 'custom' => 'in-portal:configuration_custom'), - + 'Sections' => Array( // "Structure & Data" section 'in-portal:site' => Array( @@ -97,25 +104,34 @@ 'type' => stTREE, ), - 'in-portal:browse' => Array( + 'in-portal:browse' => Array( 'parent' => 'in-portal:site', 'icon' => 'catalog', 'label' => 'la_tab_Browse', - 'url' => Array('index_file' => 'browse.php', 'pass' => 'm'), + '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, + 'priority' => 0.1, 'type' => stTREE, ), + 'in-portal:advanced_view' => Array( + 'parent' => 'in-portal:site', + 'icon' => 'advanced_view', + 'label' => 'la_tab_AdvancedView', + 'url' => Array('t' => 'advanced_view', 'pass' => 'm'), + 'permissions' => Array('view'), + 'priority' => 0.2, + 'type' => stTREE, + ), - 'in-portal:browse_new' => Array( + /*'in-portal:browse' => 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)', + 'label' => 'la_tab_Browse', + 'url' => Array('index_file' => 'browse.php', 'pass' => 'm'), 'permissions' => Array('view'), - 'priority' => 1.1, + 'priority' => 1, 'type' => stTREE, ), @@ -127,7 +143,7 @@ 'permissions' => Array('view'), 'priority' => 2, 'type' => stTREE, - ), + ),*/ 'in-portal:reviews' => Array( 'parent' => 'in-portal:site', @@ -238,7 +254,7 @@ 'Priority' => Array('type' => 'int', 'not_null' => 1, 'default' => ''), 'MetaKeywords' => Array('type' => 'string', 'default' => ''), 'CachedDescendantCatsQty' => Array('type' => 'int', 'default' => ''), - 'CachedNavbar' => Array('type' => 'string', 'not_null' => 1, 'default' => ''), + 'CachedNavbar' => Array('type' => 'string', 'formatter' => 'kMultiLanguage', 'not_null' => 1, 'default' => ''), 'CreatedById' => Array('type' => 'int', 'formatter' => 'kLEFTFormatter', 'options' => Array(-1 => 'root', -2 => 'Guest'),'left_sql'=>'SELECT %s FROM '.TABLE_PREFIX.'PortalUser WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Login', 'not_null' => 1,'default' => '0'), 'ResourceId' => Array('type' => 'int', 'default' => ''), 'ParentPath' => Array('type' => 'string', 'not_null' => 1, 'default' => ''), @@ -250,9 +266,7 @@ 'Modified' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'not_null' => 1,'default' => '#NOW#'), 'ModifiedById' => Array('type' => 'int', 'formatter' => 'kLEFTFormatter', 'options' => Array(-1 => 'root', -2 => 'Guest'),'left_sql'=>'SELECT %s FROM '.TABLE_PREFIX.'PortalUser WHERE `%s` = \'%s\'', 'left_key_field' => 'PortalUserId', 'left_title_field' => 'Login', 'not_null' => 1,'default' => '0'), 'CategoryTemplate' => Array('type' => 'string', 'not_null' => 1, 'default' => ''), - 'ItemTemplate' => Array('type' => 'string', 'not_null' => 1, 'default' => ''), 'CachedCategoryTemplate' => Array('type' => 'string', 'not_null' => 1, 'default' => ''), - 'CachedItemTemplate' => Array('type' => 'string', 'not_null' => 1, 'default' => ''), ), 'VirtualFields' => Array( @@ -272,13 +286,13 @@ ), ), - 'ConfigMapping' => Array( - 'PerPage' => 'Perpage_Category', - 'DefaultSorting1Field' => 'Category_Sortfield', - 'DefaultSorting2Field' => 'Category_Sortfield2', - 'DefaultSorting1Dir' => 'Category_Sortorder', - 'DefaultSorting2Dir' => 'Category_Sortorder2', - ), + 'ConfigMapping' => Array( + 'PerPage' => 'Perpage_Category', + 'DefaultSorting1Field' => 'Category_Sortfield', + 'DefaultSorting2Field' => 'Category_Sortfield2', + 'DefaultSorting1Dir' => 'Category_Sortorder', + 'DefaultSorting2Dir' => 'Category_Sortorder2', + ), ); ?> \ No newline at end of file