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?
LISE: Inhoud Text Area ophalen Topic is solved
Moderator: velden
Re: LISE: Inhoud Text Area ophalen
{$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!
* 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: Inhoud Text Area ophalen
@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.
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.
Re: LISE: Inhoud Text Area ophalen
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...
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!
* 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!
[solved] Re: LISE: Inhoud Text Area ophalen
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'
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'
Re: LISE: Inhoud Text Area ophalen
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!
* 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!