By David Montoya on Wednesday, 27 April 2016
Posted in General Issues
Replies 1
Likes 0
Views 297
Votes 0
With the following code, I can get category inclusion ID.

if ($this->params->get('inclusions',true)) {
$inclusion = $this->params->get('inclusion');
}


How do I call category inclusion names?
Hi David,

You need to load the category and from there you can call the category title. You can try to refer the example below.
$category = EB::table('Category');
$category->load($inclusion);
$title = $category->title;


Hope these help.
·
Wednesday, 27 April 2016 16:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post