Index: trunk/kernel/units/categories/categories_config.php
===================================================================
diff -u -r5185 -r5219
--- trunk/kernel/units/categories/categories_config.php (.../categories_config.php) (revision 5185)
+++ trunk/kernel/units/categories/categories_config.php (.../categories_config.php) (revision 5219)
@@ -6,11 +6,11 @@
'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'),
'EventHandlerClass' => Array('class'=>'CategoriesEventHandler','file'=>'categories_event_handler.php','build_event'=>'OnBuild'),
'TagProcessorClass' => Array('class'=>'CategoriesTagProcessor','file'=>'categories_tag_processor.php','build_event'=>'OnBuild'),
-
+
'RegisterClasses' => Array(
Array('pseudo' => 'kPermCacheUpdater','class' => 'kPermCacheUpdater', 'file' => 'cache_updater.php','build_event'=>''),
),
-
+
'AutoLoad' => true,
'QueryString' => Array(
1 => 'id',
@@ -26,12 +26,12 @@
),
),
'IDField' => 'CategoryId',
-
+
'StatusField' => Array('Status'),
-
+
'TitleField' => 'Name', // field, used in bluebar when editing existing item
'ItemType' => 1, // used for custom fields only
-
+
'StatisticsInfo' => Array(
'pending' => Array(
'icon' => 'icon16_cat_pending.gif',
@@ -41,7 +41,7 @@
'status' => STATUS_PENDING,
),
),
-
+
'TableName' => TABLE_PREFIX.'Category',
'ViewMenuPhrase' => 'la_text_Categories',
@@ -52,22 +52,22 @@
'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#)"),
-
+
'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_custom' => Array('prefixes' => Array('c'), 'format' => "#c_status# '#c_titlefield#' - !la_title_Custom!"),
-
+
'categories_update' => Array('prefixes' => Array(), 'format' => "!la_title_UpdatingCategories! "),
-
+
'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(
@@ -89,7 +89,7 @@
'priority' => 1,
'type' => stTREE,
),
-
+
'in-portal:browse_new' => Array(
'parent' => 'in-portal:site',
'icon' => 'catalog',
@@ -163,7 +163,7 @@
),
),
-
+
'FilterMenu' => Array(
'Groups' => Array(
Array('mode' => 'AND', 'filters' => Array('show_active','show_pending','show_disabled'), 'type' => WHERE_FILTER),
@@ -179,7 +179,7 @@
'show_pick' => Array('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '`EditorsPick` != 1' ),
)
),
-
+
'ListSQLs' => Array( ''=> ' SELECT %1$s.* %2$s
FROM %1$s
LEFT JOIN '.TABLE_PREFIX.'PermCache ON '.TABLE_PREFIX.'PermCache.CategoryId = %1$s.CategoryId
@@ -198,7 +198,7 @@
'Sorting' => Array('Name' => 'asc'),
)
),
-
+
'CalculatedFields' => Array(
'' => Array(
'CurrentSort' => "REPLACE(ParentPath, CONCAT('|', ".'%1$s'.".CategoryId, '|'), '')",
@@ -254,7 +254,7 @@
),
),
-
+
'ConfigMapping' => Array(
'PerPage' => 'Perpage_Category',
'DefaultSorting1Field' => 'Category_Sortfield',