FEU property with Smarty tags

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
boo
New Member
New Member
Posts: 4
Joined: Thu May 19, 2011 10:07 pm

FEU property with Smarty tags

Post 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...
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: FEU property with Smarty tags

Post 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
boo
New Member
New Member
Posts: 4
Joined: Thu May 19, 2011 10:07 pm

Re: FEU property with Smarty tags

Post by boo »

I don't use '>' in WYSIWYG, "$feu_smarty->" is in template.
I can't display smarty ({Gallery},{News} ...) from FrontEndUsers - property: textarea :(
Attachments
feu.png
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: FEU property with Smarty tags

Post 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
boo
New Member
New Member
Posts: 4
Joined: Thu May 19, 2011 10:07 pm

Re: FEU property with Smarty tags

Post by boo »

Thank you very much!!! It's working now! :D
Post Reply

Return to “Modules/Add-Ons”