XF 2.2 Custom Field in member_tooltip

tpmedia

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?
 
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 }} .
 
Back
Top Bottom