PeterDK Posted April 28, 2014 Posted April 28, 2014 Good evening! I'm working on a site where the 'editor' must select multiple users. I set up a field with this 'selector' => "template=user,sort=lastname" It works as designed, but when I add roles => "template=user,roles=huidige_leden,sort=lastname". Suddenly the validation fails constantly. Can anybody tell me what I'm doing wrong?
Mats Posted April 28, 2014 Posted April 28, 2014 Roles returns PageArray. Guest = 37 Superadmin = 38 Perhaps you can try roles.name in the selector.
PeterDK Posted April 28, 2014 Author Posted April 28, 2014 So, what operator should I use instead of '='?
Mats Posted April 28, 2014 Posted April 28, 2014 Instead of "huidige_leden" you should use the page id for the role. Not tested but should work. The operator is correct but the type of value is wrong.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now