code/models/editablefields/EditableFieldMemberList.php 1 location
|
@@ 43-51 (lines=9) @@
|
| 40 |
|
]; |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
protected function initFormField() |
| 44 |
|
{ |
| 45 |
|
if ($this->getSetting('GroupID')) { |
| 46 |
|
$members = Member::map_in_groups($this->getSetting('GroupID')); |
| 47 |
|
|
| 48 |
|
return new DropdownField($this->Name, $this->Title, $members); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
return false; |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
code/models/editablefields/EditableFieldPageTypeList.php 1 location
|
@@ 52-60 (lines=9) @@
|
| 49 |
|
]; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
protected function initFormField() |
| 53 |
|
{ |
| 54 |
|
if ($this->getSetting('PageTypeName')) { |
| 55 |
|
$pages = Page::get($this->getSetting('PageTypeName'))->map('ID', 'Title'); |
| 56 |
|
|
| 57 |
|
return new DropdownField($this->Name, $this->Title, $pages); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
return false; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
public function getIcon() |