LISE: Inhoud Text Area ophalen Topic is solved

Nederlandse ondersteuning voor CMS Made Simple

Moderator: velden

Post Reply
Robert
Forum Members
Forum Members
Posts: 15
Joined: Fri Jun 21, 2013 8:38 pm

LISE: Inhoud Text Area ophalen

Post by Robert »

Ik ben sinds een paar dagen bezig met de LISE module.
Waar ik tegen aan loop is dat het me niet lukt om de inhoud van een Text Area op te vragen.

Ik heb allerlei varianten van onderstaande geprobeerd, maar ik kom er niet uit.

{assign var=foo value=$item->fielddefs.beschrijving.value}
{$foo}

of

{assign var=foo value=$item->fielddefs->beschrijving}
{$foo.value}

Tips over hoe ik dit zou moeten aanpakken?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE: Inhoud Text Area ophalen

Post by Jo Morg »

{$item->description} :)
"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!
Robert
Forum Members
Forum Members
Posts: 15
Joined: Fri Jun 21, 2013 8:38 pm

Re: LISE: Inhoud Text Area ophalen

Post by Robert »

@Jo Morg: I am not looking for the standard 'description'
I have added a Field Defintion called 'Beschrijving', alias 'beschrijving' of type Text Area to my 'Employee' LiseComponent.
My test Employees have this 'Beschrijving' filled with styled text.
However, I cannot figure out how to retrieve the content from the Beschrijving field.

Can you help me with an example or documentation?

I also have a Checkboxgroup with several 'capabilities' . I managed to loop over the values bij doing:
<ul role="list">
{assign var=caps value=","|explode:$item->fielddefs.caps.value}
{foreach from=$caps item=cap}<li>{$cap}</li>{/foreach}
</ul>
But a similar approach does not seem to work with the TextArea field.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE: Inhoud Text Area ophalen

Post by Jo Morg »

Any field value can be accessed via {$item-><field_alias>}. Their representation depends a bit on it's type, but field values are all stored as plain text.
so...

Code: Select all

{$item->beschrijving}
"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!
Robert
Forum Members
Forum Members
Posts: 15
Joined: Fri Jun 21, 2013 8:38 pm

[solved] Re: LISE: Inhoud Text Area ophalen

Post by Robert »

Thank you, thank you, thank you!

I spent hours finding the solution, when the problem was extremely simple...

I made a typo in the fielddefinition. I used 'beschrijiving'. Even now I find it very hard to spot the extra 'i' :o
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE: Inhoud Text Area ophalen

Post by Jo Morg »

Glad I could help! Have a great New Year!
"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 “Dutch - Nederlands”