How to get article id on BT CONTENT SLIDER?

by kokbira   Last Updated November 13, 2017 14:10 PM

I have a BT CONTENT SLIDER module on main page of my website to show a list of 3 articles from category called "News" on main page.

I would like to read custom params of that articles shown on that component, on /templates/mytemplate/html/default.php. I googled a lot and tested some solutions, but I could not not find a way to get article ids.

Any ideas?



Answers 1


From the last try, I got the way to get all three articles on BT CONTENT SLIDER:

$list = modBtContentSliderHelper::getList( $params, $module );
foreach($list as $article){
  echo $article->id;
}

To get the id only from current article, it is so easy:

echo $row->id;
kokbira
kokbira
November 13, 2017 13:54 PM

Related Questions


Joomla custom fields in mod_articles_category

Updated February 28, 2018 19:10 PM


Custom fields don't render plugin shortcode

Updated January 28, 2018 23:10 PM

Custom Module - Subform get file type

Updated April 19, 2018 15:10 PM

Custom field "article id"

Updated March 24, 2018 13:10 PM