XF 2.2 Using custom profile fields in RM template

DrCustUmz

Active member
I am trying to add a user field to RM I am going about this the following way.

In template xfrm_resource_view I am using:
Code:
<xf:if is="{$user.Profile.custom_fields.FIELDID}">
    <xf:button href="{{ link({$user.Profile.custom_fields.FIELDID}) }}" class="button--cta button--icon button--fullWidth">CLICK ME</xf:button>
</xf:if>

The profile field is a link users can enter, to go with their resource.

I am doing it this way rather than a resource field for a reason, but it doesn't seem to work.
 
Just try to dump everything to find out, what is useable.
I am shure that $user is there, but maybe you try

$resource.User and
$resource.custom_fields
 
$resource.custom_fields are custom fields for resource manager if I'm not mistaken. But I will play around with it and see what we have available.
 
Sorry, you meant a user_custom_field not a resource_custom_field.
So try to dump $resource.User = owner of that resource you view.
 
Back
Top Bottom