Index: custom/install/install_data.sql
===================================================================
--- custom/install/install_data.sql (revision 13321)
+++ custom/install/install_data.sql (working copy)
@@ -9,3 +9,6 @@
# ===== SQLs above this line already on DEV ========================================================================================================
# place here only sql queries, that were executed on prod server !!!
+
+UPDATE CategoryItems SET l2_Filename = Filename;
+UPDATE Category SET l2_Filename = Filename, l2_NamedParentPath = NamedParentPath;
\ No newline at end of file
Index: custom/units/sections/sections_config.php
===================================================================
--- custom/units/sections/sections_config.php (revision 13321)
+++ custom/units/sections/sections_config.php (working copy)
@@ -13,6 +13,7 @@
'RegisterClasses' => Array (
// Array ('pseudo' => 'c_TagProcessor', 'class' => 'ECategoriesTagProcessor', 'file' => 'categories_tp.php'),
// Array ('pseudo' => 'u_EventHandler', 'class' => 'EUsersEventHandler', 'file' => 'users_event_handler.php'),
+ Array ('pseudo' => 'ModRewriteHelper', 'class' => 'EModRewriteHelper', 'file' => 'e_mod_rewrite_helper.php'),
),
// 'ReplacementTemplates' => Array (
Index: in-commerce/admin_templates/products/products_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/products_edit.tpl (revision 13321)
+++ in-commerce/admin_templates/products/products_edit.tpl (working copy)
@@ -76,7 +76,7 @@
-
+
Index: in-commerce/units/products/products_config.php
===================================================================
--- in-commerce/units/products/products_config.php (revision 13321)
+++ in-commerce/units/products/products_config.php (working copy)
@@ -278,6 +278,9 @@
),
'TableName' => TABLE_PREFIX.'Products',
+
+ 'CacheModRewrite' => true,
+
'CalculatedFields' => Array (
'' => Array (
'SameImages' => 'img.SameImages',
@@ -294,7 +297,8 @@
'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId',
'ParentPath' => TABLE_PREFIX.'Category.ParentPath',
'Manufacturer' => TABLE_PREFIX.'Manufacturers.Name',
- 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename',
+ 'Filename' => TABLE_PREFIX . '%3$sCategoryItems.l%2$s_Filename',
+ 'CategoryFilename' => TABLE_PREFIX.'Category.l%2$s_NamedParentPath',
'FileSize' => 'files.Size',
'FilePath' => 'files.FilePath',
'FileVersion' => 'files.Version',
@@ -308,7 +312,8 @@
'FileSize' => 'files.Size',
'FilePath' => 'files.FilePath',
'FileVersion' => 'files.Version',
- 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename',
+ 'Filename' => TABLE_PREFIX . '%3$sCategoryItems.l%2$s_Filename',
+ 'CategoryFilename' => TABLE_PREFIX.'Category.NamedParentPath',
),
),
@@ -459,7 +464,8 @@
'FullImage' => Array('type' => 'string', 'default' => ''),
'ImageAlt' => Array('type' => 'string', 'default' => ''),
- 'Filename' => Array('type' => 'string','not_null' => '1','default' => ''),
+ 'Filename' => Array('type' => 'string', 'formatter' => 'kMultiLanguage', 'default' => ''),
+ 'CategoryFilename' => Array('type' => 'string', 'formatter' => 'kMultiLanguage', 'default' => ''),
'CachedNavbar' => Array('type' => 'string', 'default' => ''),
'ParentPath' => Array('type' => 'string', 'default' => ''),