Jump to content


Photo

Users Dropdown Menu

Module Request

  • Please log in to reply
2 replies to this topic

#1 ryanscherler

ryanscherler

    Jr. Member

  • Members
  • PipPip
  • 10 posts
  • 2

Posted 03 June 2012 - 04:06 PM

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

#2 diogo

diogo

    Hero Member

  • Moderators
  • 2,009 posts
  • 1089

  • LocationPorto, Portugal

Posted 03 June 2012 - 05:27 PM

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

ryanscherler

    Jr. Member

  • Members
  • PipPip
  • 10 posts
  • 2

Posted 03 June 2012 - 08:03 PM

Hah! - I should have realized I could select users instead of just pages in the site tree.

Thanks!





Also tagged with one or more of these keywords: Module, Request

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users