Page 1 of 1

FEU property with Smarty tags

Posted: Thu Oct 27, 2011 1:33 am
by boo
Hello, how i can use use smarty tags in properties with textarea (FrontEndUsers module)?

for example i want show Gallery module for each user.
property "photos":
--------
{Gallery}
bla bla bla....
-------
main template:

Code: Select all

....
{$feu_smarty->get_user_properties($userid,'userprops')}
{$userprops.photos}
....

but in frontend it look like text:
{Gallery} (like text, but doesn't run smarty...)
bla bla bla...

Re: FEU property with Smarty tags

Posted: Thu Oct 27, 2011 9:43 pm
by psy
You can't use a tag with '>' in it in a WYSIWYG area. TinyMCE converts the greater than sign to > rendering the tag useless.

To fix, either turn off WYSIWYG for that page or create a UDT or a non-wysiwyg Global Content Block to return the result as a normal variable, eg {$userprops}.

psy

Re: FEU property with Smarty tags

Posted: Fri Oct 28, 2011 11:14 am
by boo
I don't use '>' in WYSIWYG, "$feu_smarty->" is in template.
I can't display smarty ({Gallery},{News} ...) from FrontEndUsers - property: textarea :(

Re: FEU property with Smarty tags

Posted: Fri Oct 28, 2011 11:14 pm
by psy
Ok, I think I get it now. Smarty tags in fields within forms need to be evaluated first.

In the template where you are calling the FEU property, try

{eval var=$ccuser->property('documents')}

hth

Re: FEU property with Smarty tags

Posted: Sat Oct 29, 2011 10:04 am
by boo
Thank you very much!!! It's working now! :D