23368 Posts in 18143 Topics by 2863 members
|Go to End|
8 July 2010 at 12:42am
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?
Jatinder Singh Thind
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);
8 July 2010 at 6:14pm
Thank you for the response. I will try that out.
|Go to Top|