·
Added a discussion

I'm trying to get a macro that finds all members with a specific subset of account levels. The documentation says that the first parameter in the macro can be an array of multiple membership levels. So I want to create something like this macro, but with multiple level #'s attached to it:

{ {~bx_persons:browse_by_acl[10]~} }

I found plenty of examples of macros with arrays, but none with arrays of multiple items in the same parameter.

{ {~bx_persons:browse_by_acl["8""10""12"]~} }

This returns "error - too many arguments" because I'm assuming it thinks the "10" is the $iDesignBox parameter and doesn't know what to do with the "12". I can't figure out how to assign all three levels to one parameter.

Interestingly, I think I figured out how to do it in a developer block:

array (
  'module' => 'bx_persons',
  'method' => 'browse_by_acl',
  'params' => 
  array (
    0 => 
    array (
      0 => '8',
      1 => '10',
      2 => '12',
    ),
  ),
)

That seems to return the correct people.

Anyone know how to do it with a macro?

  • 871