• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Allow using xen:Options in xen:helper

AndyB

Well-known member
#1
It would be nice to be able to use xen:Options within a xen:helper.

This works fine:

Code:
<xen:if is="{xen:helper ismemberof, $visitor, 3,4,5}">
stuff to display for usergroups 3, 4 and 5.
</xen:if>
This does not work:

membersearchGroupPermissions = 3,4,5

Code:
<xen:if is="{xen:helper ismemberof, $visitor, {$xenOptions.membersearchGroupPermissions}}">
stuff to display for usergroups 3, 4 and 5.
</xen:if>
 

Jeremy

Well-known member
#2
The two are not equivalent. 3, 4, and 5 in your first example are individual values. In your second, you send a single value: '3,4,5'.