XF 2.3 Using secondary usergroups in a conditional

CTS

Active member
I am attempting to use a conditional on a page node, and I cant figure out how to include the secondary usergroup in a conditional decision.

Current setup

Page node displays certain information when a user is a member and logged in.

I wish to display certain data only to logged in registered members with certain secondary usergroups, without showing to other secondary usergroups.


Does that make sense?

edit to clarify,...

Page node displayed
- Member with no secondary usergroup see text1
- Member with secondary usergroup1 will see text2, but not text1 or text3
- Member with secondary usergroup2 will see text3 , but not text1 or text2
 
Last edited:
I wish to display certain data only to logged in registered members with certain secondary usergroups, without showing to other secondary usergroups.
The registered user's text 1 would have to have conditional not in user group 2 or 3. The other ones are simply conditional group 1 see text 2 and group 2 see text 3.

I think problem goes away if you don't have Registered group to see text 1, just hide it from the others.
 
As a workaround I was experimenting with AND conditionals but all it does is throw errors.

Code:
<xf:if is="{{$xf.visitor.isMemberOf(2)}}" AND xf:if is="{{$xf.visitor.isMemberOf(5)}}">
 
Back
Top Bottom