XF 1.4 Custom Field

Dan Hawkins

Active member
I'm trying to reference a custom field in the nav bar

Basically - a quick launch button for our clients to be able to launch their application (When the field is populated)

upload_2014-9-13_22-21-10.webp

Code:
<!-- eSP Launcher -->
                        <xen:if is="{$user.customFields.esellerproclient}">
                            <a href="{$user.customFields.esellerproclient}" target="_blank" class="navLink"><img src="http://domain.com/styles/drift/images/esp2.png"></img></a>
                        </xen:if>

So I'm trying to reference an image - if the field is populated...

However, I've populated the field - yet it fails to populate.

Settings:

upload_2014-9-13_22-22-6.webp

upload_2014-9-13_22-22-47.webp

upload_2014-9-13_22-23-50.webp

Basically - I DO NOT want this field displayed in the user info (Banner) or visible on the user's profile.


It's a private URL, so needs to remain that way - But we want clients to be able to launch the application by clicking the image in the nav bar.

Any ideas?

Regards,

Dan
 
Instead of $user, try $visitor

$visitor is always the currently logged on user.

I have to be honest I only glanced over what you put so far but certainly that would need correcting first.
 
Top Bottom