1. 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

Discussion in 'Closed Suggestions' started by AndyB, Jan 15, 2014.

  1. AndyB

    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>
    
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    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'.
     
  3. AndyB

    AndyB Well-Known Member

    Turns out that what I was trying to do is easily done with Permission Definitions.

    Admin CP -> Development -> Permission Definitions
     
    xf_phantom likes this.

Share This Page