1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

More inline news editing tweaks.

This commit is contained in:
Cameron
2016-05-31 17:44:07 -07:00
parent 048ab169da
commit 26636f318c
4 changed files with 16 additions and 15 deletions

View File

@@ -382,17 +382,15 @@ class news {
'vars' => 'news_item',
'perms' => '0',
'shortcodes' => array(
'newstitle' => array('field'=>'news_title', 'type'=>'text', 'container'=>'span'),
'newsmetadiz' => array('field'=>'news_meta_description','type'=>'text', 'container'=>'div'),
'newsbody' => array('field'=>'news_body', 'type'=>'html', 'container'=>'div'),
'news_title' => array('field'=>'news_title', 'type'=>'text', 'container'=>'span'),
'news_description' => array('field'=>'news_meta_description','type'=>'text', 'container'=>'div'),
'news_body' => array('field'=>'news_body', 'type'=>'html', 'container'=>'div'),
'news_summary' => array('field'=>'news_summary', 'type'=>'text', 'container'=>'span'),
)
);
// Aliases
$editable['shortcodes']['newstitlelink'] = $editable['shortcodes']['newstitle'];
$editable['shortcodes']['news_title'] = $editable['shortcodes']['newstitle'];
$editable['shortcodes']['news_body'] = $editable['shortcodes']['newsbody'];
$sc = e107::getScBatch('news')