• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Linebreaks with Custom Fields?

nrep

Well-known member
#1
I've got a custom field that is a multi-line textbox, but when I try and use this information in a template by calling {$user.customFields.fieldname} it shows without the linebreaks.

Is there a way to include the linebreaks? The template for the info tab on the profile page seems to include some sort of HTML version of the customfields - but I can't figure out how to do this.
 

high1976

Active member
#5
{xen:raw $user.customFields.fieldname}
nope, that doesn't work for multi-lines. It shows the fieldcontent ofc but it strips linebreaks aso so it's not really usable.

.fieldValueHtml might help (template: custom_field_view )but I wasn't able to get it working yet...