RM 2.3 Conditional on resource field in own tab location

Andy.N

Well-known member
Is it possible to put some conditional on resource fields that are its own tabs?
I'd like to have some tabs only viewable to logged in members, not guests.
 
Note to self:
Instead of showing/hiding tabs, use conditional inside tab template
<xf:if is="$xf.visitor.user_id">
Show something
<xf:else />
<a href="{{ link('/login') }}"><xf:fa icon="fas fa-lock"/></a>
</xf:if>
 
Back
Top Bottom