LISE - use {udt} tag in editor

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
przemo
Forum Members
Forum Members
Posts: 23
Joined: Mon Dec 30, 2013 12:58 pm

LISE - use {udt} tag in editor

Post by przemo »

Hello,
I would like to be able to use some {udt} in my wysiwyg editor in LISE module. When I put {udt} directly in the template it is working good, but I need to have opportunity to use it anywhere - that's why I use it in edior. For example:

my_udt: echo 'This is What I Want';

Now on my page I have:

txt paragraph
{my_udt}
txt paragraph

As a result I would get:
txt paragraph
This is What I Want
txt paragraph

Can anyone help me?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: LISE - use {udt} tag in editor

Post by velden »

You will need to eval your field. (check Smarty website for eval).
przemo
Forum Members
Forum Members
Posts: 23
Joined: Mon Dec 30, 2013 12:58 pm

Re: LISE - use {udt} tag in editor

Post by przemo »

Thanks ~Velden, this is what I was looking for!
For all those who also sought answers below is solution:

Change this:
{$item->fielddefs.FIELD_ALIAS.value}
Into this:
{eval var=$item->fielddefs.FIELD_ALIAS.value}

And that's it! ;D
Best regards
Locked

Return to “Modules/Add-Ons”