mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Fixes #4806 - news keyword maxlength limitation fix.
This commit is contained in:
parent
4f6b41d73e
commit
c494c04c7e
@ -452,7 +452,7 @@ class news_admin_ui extends e_admin_ui
|
||||
'news_extended' => array('title' => "", 'type' => null, 'data'=>'str', 'tab'=>0, 'nolist'=>true, 'noedit'=>true, 'writeParms'=>'nolabel=1', 'width' => 'auto', 'thclass' => '', 'class' => null, 'nosort' => false),
|
||||
|
||||
'news_meta_title' => array('title' => LAN_META_TITLE, 'type' => 'text', 'data'=>'safestr', 'filter'=>true, 'tab'=>1, 'inline'=>true, 'width' => 'auto', 'help'=>'', 'writeParms'=>['size'=>'xxlarge', 'placeholder'=>'', 'counter'=>0, 'maxlength'=> 255], 'nosort' => false),
|
||||
'news_meta_keywords' => array('title' => LAN_KEYWORDS, 'type' => 'tags', 'data'=>'safestr', 'filter'=>true, 'tab'=>1, 'inline'=>true, 'width' => 'auto', 'thclass' => '', 'class' => null, 'nosort' => false),
|
||||
'news_meta_keywords' => array('title' => LAN_KEYWORDS, 'type' => 'tags', 'data'=>'safestr', 'filter'=>true, 'tab'=>1, 'inline'=>true, 'width' => 'auto', 'thclass' => '', 'class' => null, 'nosort' => false, 'readParms'=>['maxlength'=>255,'maxItems'=>30], 'writeParms' => ['maxItems'=>30, 'maxlength'=>255]),
|
||||
'news_meta_description' => array('title' => LAN_META_DESCRIPTION,'type' => 'textarea', 'data'=>'safestr','filter'=>true, 'tab'=>1, 'width' => 'auto', 'thclass' => '', 'help'=>'', 'class' => null, 'nosort' => false, 'writeParms'=>array('size'=>'xxlarge', 'counter'=>0, 'maxlength'=>255, 'rows'=>2)),
|
||||
'news_meta_robots' => array('title' => LAN_ROBOTS, 'type' => 'dropdown', 'data'=>'safestr', 'tab'=>1, 'inline'=>true, 'readParms'=>array('type'=>'checkboxes'), 'writeParms'=>array('multiple'=>1), 'width' => 'auto', 'thclass' => 'left', 'class' => 'left', 'nosort' => false, 'batch'=>true, 'filter'=>true),
|
||||
|
||||
|
@ -302,7 +302,7 @@ CREATE TABLE menus (
|
||||
CREATE TABLE news (
|
||||
news_id int(10) unsigned NOT NULL auto_increment,
|
||||
news_title varchar(255) NOT NULL default '',
|
||||
news_sef varchar(200) NOT NULL default '',
|
||||
news_sef varchar(255) NOT NULL default '',
|
||||
news_body longtext NOT NULL,
|
||||
news_extended longtext NOT NULL,
|
||||
news_meta_title varchar(255) NOT NULL default '',
|
||||
|
@ -5648,7 +5648,10 @@ var_dump($select_options);*/
|
||||
'e_editable' => $field . '_' . $id,
|
||||
);
|
||||
|
||||
$tpl = $this->text($field, $value, 80, $options);
|
||||
$maxlength = vartrue($parms['maxlength'], 80);
|
||||
unset($parms['maxlength']);
|
||||
|
||||
$tpl = $this->text($field, $value, $maxlength, $options);
|
||||
|
||||
$mode = preg_replace('/[\W]/', '', vartrue($_GET['mode']));
|
||||
$value = "<a" . $this->attributes([
|
||||
|
Loading…
x
Reference in New Issue
Block a user