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

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

AndyB

Well-known member
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>
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
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'.
 
Turns out that what I was trying to do is easily done with Permission Definitions.

Admin CP -> Development -> Permission Definitions
 
Top Bottom