P PASS Well-known member Jan 8, 2019 #1 Is there a way to add a Nav link/tab with a conditional so it only shows to certain usergroups?
P PASS Well-known member Jan 8, 2019 #3 BassMan said: When editing nav tab check here: View attachment 192293 Click to expand... I've done conditionals in templates plenty of times but can you give me a quick example if I only wanted to show it to usergroupB. I want to make sure I understand the format for that box. Thx. Upvote 0 Downvote
BassMan said: When editing nav tab check here: View attachment 192293 Click to expand... I've done conditionals in templates plenty of times but can you give me a quick example if I only wanted to show it to usergroupB. I want to make sure I understand the format for that box. Thx.
P PASS Well-known member Jan 8, 2019 #4 I figured it out. For anyone else.. replace x with usergroup id. PHP: $xf.visitor.isMemberOf(x) Upvote 0 Downvote