21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1076 Views |
-
List of members as select field

8 July 2010 at 12:42am
Hello,
I am developing a custom module and have added a custom page type. I want to add a member with each page of this custom page type.
That is, when the admin creates a page, he should be able to select a member from a dropdown list of members for a specific group.
How do I go about this?
Thanks,
Jatinder Singh Thind -
Re: List of members as select field

8 July 2010 at 3:25am
$specificGroups = array(1,2,3);
$Group = new Group();
$Members = $Group->Members(
$limit = '',
$offset = '',
$filter = "`Group_Members`.GroupID IN ( ".implode(", ",$specificGroups)." )",
$sort = 'Member.Email',
$join = ''
);
new DropdownField('Member1','Member 1',$Members->toDropdownMap('ID'),$this->Member1); -
Re: List of members as select field

8 July 2010 at 6:14pm
Thank you for the response. I will try that out.
| 1076 Views | ||
|
Page:
1
|
Go to Top |


