A Andy.N Well-known member Dec 20, 2024 #1 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.
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.
A Andy.N Well-known member Dec 22, 2024 #2 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> Upvote 0 Downvote
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>
frm Well-known member Dec 22, 2024 #3 Andy.N said: Instead of showing/hiding tabs, use conditional inside tab template Click to expand... You can also hide the tab, but I can't be of much assistance without seeing the tab you want to hide. Upvote 0 Downvote
Andy.N said: Instead of showing/hiding tabs, use conditional inside tab template Click to expand... You can also hide the tab, but I can't be of much assistance without seeing the tab you want to hide.