Index: admin_templates/categories/edit_content.tpl =================================================================== --- admin_templates/categories/edit_content.tpl (revision 14472) +++ admin_templates/categories/edit_content.tpl (working copy) @@ -51,6 +51,9 @@ + + +
@@ -62,8 +65,15 @@ + +
Index: install/english.lang =================================================================== --- install/english.lang (revision 14472) +++ install/english.lang (working copy) @@ -422,6 +422,7 @@ Q29tbWVudHM= Q29tcGFueQ== Q29uZmlndXJhdGlvbiBIZWFkZXIgTGFiZWw= + Q29udGVudCBCbG9jaw== Q29weSBMYWJlbHMgZnJvbSB0aGlzIExhbmd1YWdl Q291bnRyeQ== Q3JlYXRlZCBCeQ== Index: kernel/db/dbitem.php =================================================================== --- kernel/db/dbitem.php (revision 14472) +++ kernel/db/dbitem.php (working copy) @@ -722,7 +722,7 @@ $res = $f($val) && ($val == $this->FieldValues[$field]); } if (!$res) { - $this->SetError($field, 'bad_type', null, $params['type']); + $this->SetError($field, 'bad_type', null, Array ($params['type'])); } } return $res; @@ -846,7 +846,7 @@ $res = $res && mb_strlen($val) >= $params['min_len']; } if (!$res) { - $error_params = Array (getArrayValue($params, 'min_len'), getArrayValue($params, 'max_len')); + $error_params = Array (getArrayValue($params, 'min_len'), getArrayValue($params, 'max_len'), mb_strlen($val)); $this->SetError($field, 'length_out_of_range', null, $error_params); return $res; } Index: units/content/content_config.php =================================================================== --- units/content/content_config.php (revision 14472) +++ units/content/content_config.php (working copy) @@ -36,8 +36,8 @@ 'AutoDelete' => true, 'AutoClone' => true, - 'TitleField' => 'ContentNum', // field, used in bluebar when editing existing item - + 'TitleField' => 'ContentNum', // field, used in bluebar when editing existing item + 'TitlePresets' => Array ( 'default' => Array ( 'new_status_labels' => Array ('content' => '!la_title_Adding_Content!'), @@ -59,7 +59,11 @@ 'PageContentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'ContentNum' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), 'PageId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Content' => Array ('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => ''), + 'Content' => Array ( + 'type' => 'string', 'min_len' => 0, 'max_len' => 65536, + 'formatter' => 'kMultiLanguage', 'using_fck' => 1, + 'required' => 1, 'default' => '' + ), ), );