XF 2.1 Custom Field On Front Page

Davey-UK

Active member
Hopefully someone will know a quick solution to this one.
I created a new page to use as a landing page via the forums/nodes/pages option.
I have currently got welcome back {$xf.visitor.username}! in the page, but would like this to be a custom user field (first_name) instead of the username.
I have got it to work in member card with the code below, but will not work in a page. Is this kind of call not available in pages, and if not is there a way to make it happen?
Code:
 <xf:contentcheck>
<xf:if is="{$user.Profile.custom_fields.first_name}">
{$user.Profile.custom_fields.first_name}
</xf:if>
</xf:contentcheck>

I am just wanting to output the value, such as "John".
Thanks for looking.
 
Top Bottom