BegemotUral
Active member
Hi! Tell me how to implement.
There is a condition - display only to selected groups.
It is necessary that the identifiers of the groups were taken from the style settings.
So it works, but only if you specify a single group. If you specify more than one group stops working.
In all other cases, issues an error when saving.
How to solve the problem?
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.
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?