How do I properly set up a xen:if condition for...

EQnoble

Well-known member
I am looking to have a div class inside of a xen:if condition that will make the div only display if a user is logged in.

Anyone know what to do here? I thought I knew how but I have only managed to use <xen:if and a specific user id and not just a condition for any logged in user.
 
This should work:
HTML:
<xen:if is="{$visitor.user_id}">
<div> your stuff here </div>
</xen:if>
 
That is not working for me. Hmmm...all I want is to have anybody who's logged in to be able to see this.
 
I have it now... I apparently needed to expose the template I was creating to the parent template's params.

It works now
 
Top Bottom