LISE : Get Category Name of Item

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Squire4Hire
Forum Members
Forum Members
Posts: 43
Joined: Wed Dec 09, 2015 11:16 pm

LISE : Get Category Name of Item

Post by Squire4Hire »

Can someone please help me understand how to capture the Category Name of an item in LISE instead of the Category Index number?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE : Get Category Name of Item

Post by Jo Morg »

As per LISE help:

Code: Select all

{LISELoader item='category' identifier='category_id' instance='LISEInstance' value=$id assign='current_category_obj'}
{$current_category_obj|print_r:1} 
Where $id would be the id variable of the category and print_r will give you a clue of what are the properties of the object available to be used by Smarty.
Note: LISE does not give you the "Category Index number"... it will give you an unique id instead.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Modules/Add-Ons”