XF 2.2 Custom Field in member_tooltip

tpmedia

New member
I've Googled this for ages but can't find anything. Is it possible to add a custom user field to the member_tooltip template?
 

Brogan

XenForo moderator
Staff member
Add {{ dump(vars()) }} to the template - that will confirm whether the data you want is available.

I suspect it will be available using {{ dump($user.Profile.custom_fields) }} which you can then check to determine the specific field ID and values, e.g. {{ $user.Profile.custom_fields.field_id }} .
 

tpmedia

New member
One more question if I may @Brogan, the custom field I want to display is multi-line, I can display the field but it appears on one line, is there a function to display on separate lines?
 
Top