mirror of
https://github.com/e107inc/e107.git
synced 2025-08-24 15:13:04 +02:00
Issue #1512 - Source options added. Help tips added.
This commit is contained in:
@@ -32,6 +32,8 @@ class news_menu
|
||||
$fields = array();
|
||||
$categories = array();
|
||||
|
||||
$sources = array('latest'=> "Latest News Items", 'sticky' => "Sticky News Items", 'template'=>"Assigned News items");
|
||||
|
||||
$tmp = e107::getDb()->retrieve('news_category','category_id,category_name',null, true);
|
||||
|
||||
foreach($tmp as $val)
|
||||
@@ -49,13 +51,14 @@ class news_menu
|
||||
break;
|
||||
|
||||
case "news_grid":
|
||||
$fields['caption'] = array('title'=> LAN_CAPTION, 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'));
|
||||
$fields['category'] = array('title'=> LAN_CATEGORY, 'type'=>'dropdown', 'writeParms'=>array('optArray'=>$categories, 'default'=>'blank'));
|
||||
$fields['caption'] = array('title'=> LAN_CAPTION, 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'), 'help'=>LAN_OPTIONAL);
|
||||
$fields['category'] = array('title'=> LAN_CATEGORY, 'type'=>'dropdown', 'writeParms'=>array('optArray'=>$categories, 'default'=>"(".LAN_ALL.")"), 'help'=>"Limit news items to a specific category");
|
||||
$fields['source'] = array('title'=> "Source", 'type'=>'dropdown','writeParms'=>array('optArray'=>$sources), 'help'=>"Assigned items are those with a template assigned to 'News Grid Menu' ");
|
||||
$fields['layout'] = array('title'=> "Layout", 'type'=>'method', 'writeParms'=>'');
|
||||
$fields['count'] = array('title'=> "Number of Items", 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>4));
|
||||
$fields['count'] = array('title'=> "Number of Items to Display", 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>4));
|
||||
$fields['titleLimit'] = array('title'=> "Title Character Limit", 'type'=>'number', 'writeParms'=>'');
|
||||
$fields['summaryLimit'] = array('title'=> "Summary Character Limit", 'type'=>'number', 'writeParms'=>'');
|
||||
// TODO Add a field for 'latest' vs 'sticky' vs 'assigned by news item (news_render_type)'
|
||||
|
||||
break;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user