Page 1 of 1

LISE - use {udt} tag in editor

Posted: Mon Feb 27, 2017 2:44 pm
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?

Re: LISE - use {udt} tag in editor

Posted: Mon Feb 27, 2017 3:29 pm
by velden
You will need to eval your field. (check Smarty website for eval).

Re: LISE - use {udt} tag in editor

Posted: Tue Feb 28, 2017 7:14 am
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