ryanscherler Posted June 3, 2012 Posted June 3, 2012 Does anybody know if there is a module / fieldtype to generate a dropdown menu for a specified list of users for a given 'role'. This would be handy to assign a page specifically to a user. This would be handy when using the API on an external form (e.g. a non-CMS user) could list/edit/update their related page(s). 1
diogo Posted June 3, 2012 Posted June 3, 2012 Because users and roles are also pages, you just have to use a normal "page" fieltype for this. When creating the field, go to the input tab, and choose user as the "template of selectable pages". Still on the input tab, insert roles=1013 on the "Custom selector to find selectable pages", where 1013 would be the ID of the given role. 3
ryanscherler Posted June 4, 2012 Author Posted June 4, 2012 Hah! - I should have realized I could select users instead of just pages in the site tree. Thanks!
jan Posted March 11, 2014 Posted March 11, 2014 Hi, I have to reactivate this elder topic. I'm trying to add a page selector field containing the users of a specific role as descriped above. I also want, that the (non-admin) useres (role: editor) can asign pages to other users (role: editor) [similar to a bugtracker]. If I try select users via the page select field I get the message: "You don't have access to list page /processwire/access/users/" Is there a secure way to enable the selection of users to non-admin users? Thanks for your reply!! PS: I'm using PW 2.4.0
apeisa Posted March 13, 2014 Posted March 13, 2014 Use custom selector in your page field: template=user, include=all
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