Hi all,
When I do {$item->fielddefs.type_of_category.value} I just get the ID, how do I display the name?
Thank you.
LISE - custom template display category name?
Re: LISE - custom template display category name?
Code: Select all
{LISELoader item='category' identifier='category_id' instance='<ReplaceWithLISEInstanceName>' value=$item->fielddefs.type_of_category.value assign='cat'}
{$cat->title}

"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!
* 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!
Re: LISE - custom template display category name?
Thank you Jo. I did see that in the sample templates but I get an error. The documentation doesn't quite explain how or where to get the LISELoader plugin and I think that's where my issue is.Jo Morg wrote:As described in LISE helpCode: Select all
{LISELoader item='category' identifier='category_id' instance='<ReplaceWithLISEInstanceName>' value=$item->fielddefs.type_of_category.value assign='cat'} {$cat->title}
Code: Select all
00001: Discrete LISE error: {LISELoader}: Parameter value is not given.! @ /sc_shared/site/domain.com/public/modules/LISE/lib/class.LISELoader.php (72)
Re: LISE - custom template display category name?
The problem is that there is no value given to the 'value' parameter of LISELoader.
So better check first is that specific fielddef returns something.
So better check first is that specific fielddef returns something.
Re: LISE - custom template display category name?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -