XF 2.2 Custom Field in member_tooltip

tpmedia

Member
Licensed customer
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?
 
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 }} .
 
Doesn't look like they are available, I've expanded everything I can in dump(vars()) but no custom fields. Good to know that functionality though
 
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?
 
Back
Top Bottom