XF 2.0 Groups ID from the style settings in the condition?

BegemotUral

Active member
Hi! Tell me how to implement.
There is a condition - display only to selected groups.

<xf:if is="{$xf.visitor.isMemberOf([x, y, z])}">

It is necessary that the identifiers of the groups were taken from the style settings.

1.webp

So it works, but only if you specify a single group. If you specify more than one group stops working.

HTML:
<xf:if is="property('display_members') == 'dm_on' AND {{ $xf.visitor.isMemberOf([property('groups_id')]) }}">

</xf:if>

In all other cases, issues an error when saving.

How to solve the problem?
 
Back
Top Bottom