tsdtsdtsd Posted May 12, 2014 Share Posted May 12, 2014 Hi, I'm in need of a Fieldtype which I couldn't find in the modules database and as I'm new to module development I wanted to ask for your opinions. What i need is a Filedtype like "Page" (the PageArray multiselect to be precise), but instead of choosing pages from the tree I need to be able to choose multiple users, which for example I will iterate over later on and compare with the current $user. My question is - before I dive into module development and have a hard time figuring it out - is my fieldtype even possible? As far as I can think of, I would need to retrieve a list of users from the database directly and work with it. Also, if you have any awesome hints for a mod-dev-noob (like links to good articles, except ryans guide) it would be appreciated but that's not that important as there are lots of modules I can learn from anyway. Thanks, and have a good night Link to comment Share on other sites More sharing options...
apeisa Posted May 13, 2014 Share Posted May 13, 2014 Users actually are pages in tree, so you already have what you need with page field and it's various inputfields. Link to comment Share on other sites More sharing options...
owzim Posted May 13, 2014 Share Posted May 13, 2014 Just to clarify: When defining the "Selectable Pages" in the PageField's input tab, select the users from the page tree: Admin > Access > Users 1 Link to comment Share on other sites More sharing options...
tsdtsdtsd Posted May 13, 2014 Author Share Posted May 13, 2014 Hadn't thought about that -.- Sorry for the inconvenience caused... and thank you guys Link to comment Share on other sites More sharing options...
renobird Posted May 14, 2014 Share Posted May 14, 2014 tsd, Also wanted to mention that module development isn't that difficult. Start here. Link to comment Share on other sites More sharing options...
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