diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index d9197726d..67d2896fc 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -280,6 +280,12 @@ class news_shortcodes extends e_shortcode } } + function sc_news_category_url($parm=null) + { + $category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] ); + + return e107::getUrl()->create('news/list/category', $category); + }