• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Lise - display Category name
PostPosted: Thu May 21, 2020 7:39 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Sat Jul 07, 2007 9:22 am
Posts: 760
Location: Almelo, The Netherlands
In my Lise module, I've created a category called: 'cat'
$1:
category.jpg
category.jpg [ 3.85 KiB | Viewed 52 times ]

The category is filled with data like this:
$1:
category 2.jpg
category 2.jpg [ 19.02 KiB | Viewed 52 times ]

In my template I want to use te data using:
\$1:
{$item->fielddefs.cat.value}<br />

But, When I expect 'M3', it shows '1'
Is there a way to to make it show the 'M3'?

_________________
Waarom zou het direct goed moeten gaan? Dan is alle lol weg ...


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Lise - display Category name
PostPosted: Thu May 21, 2020 12:56 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Mon Jan 29, 2007 4:47 pm
Posts: 1786
Look at the sample templates! They serve as documentation too.
LISE categories are arrays so the way you get the values depend both on how you have the categories set up and on how you want to display them on your template.

_________________
"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 Conduit | CMSMS Docs
Help Support CMSMS
My developer Page on the Forge | Yet another blog about CMSMS

GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting