LISE - custom template display category name?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

LISE - custom template display category name?

Post by rbaby »

Hi all,

When I do {$item->fielddefs.type_of_category.value} I just get the ID, how do I display the name?

Thank you.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1975
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE - custom template display category name?

Post by Jo Morg »

Code: Select all

{LISELoader item='category' identifier='category_id' instance='<ReplaceWithLISEInstanceName>' value=$item->fielddefs.type_of_category.value assign='cat'}
{$cat->title}
As described in LISE help :)
"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!
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

Re: LISE - custom template display category name?

Post by rbaby »

Jo Morg wrote:

Code: Select all

{LISELoader item='category' identifier='category_id' instance='<ReplaceWithLISEInstanceName>' value=$item->fielddefs.type_of_category.value assign='cat'}
{$cat->title}
As described in LISE help :)
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.

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)
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: LISE - custom template display category name?

Post by velden »

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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: LISE - custom template display category name?

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”