diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 12a4e6efa..a5b60f242 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -2391,7 +2391,7 @@ class e107 } else { - $mes->addDebug('Function '.$class_name.' :: '.$method_name.'() NOT found.'); + // $mes->addDebug('Function '.$class_name.' :: '.$method_name.'() NOT found.'); } } return FALSE; diff --git a/e107_plugins/news/e_menu.php b/e107_plugins/news/e_menu.php index c46669b6d..09e87f297 100644 --- a/e107_plugins/news/e_menu.php +++ b/e107_plugins/news/e_menu.php @@ -36,6 +36,8 @@ class news_menu $tmp = e107::getDb()->retrieve('news_category','category_id,category_name',null, true); + $templates = e107::getLayouts('news','news_grid', 'front', null, false, false); + foreach($tmp as $val) { $id = $val['category_id']; @@ -54,6 +56,7 @@ class news_menu $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['template'] = array('title'=> LAN_TEMPLATE, 'type'=>'dropdown', 'writeParms'=>array('optArray'=>$templates)); $fields['layout'] = array('title'=> "Layout", 'type'=>'method', 'writeParms'=>''); $fields['count'] = array('title'=> "Number of Items to Display", 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>4)); $fields['feature'] = array('title'=> "Number of Feature Items", 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>0));