• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Get a Custom User Field in PAGE_CONTAINER

#1
Hey everyone, I just wanted to change something in the PAGE_CONTAINER template depending on the value of a custom user field. I'm checking the value in the same way I've done it before:

<xen:if is="{$user.customFields.pageWidth}">
<div>it works</div>
</xen:if>

But it's not working, it seems that it never gets the value of any custom field.
I was wondering if that's supposed to happen or I'm doing something wrong.

Thanks.
 
Last edited: