mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Use new SelectionGroup_Item API in "add page" UI
This commit is contained in:
parent
027a41aec7
commit
2cd46ff0ed
@ -47,13 +47,21 @@ class CMSPageAddController extends CMSPageEditController {
|
||||
$parentModeField = new SelectionGroup(
|
||||
"ParentModeField",
|
||||
array(
|
||||
"top//$topTitle" => null, //new LiteralField("Dummy", ''),
|
||||
"child//$childTitle" => $parentField = new TreeDropdownField(
|
||||
"ParentID",
|
||||
"",
|
||||
'SiteTree',
|
||||
'ID',
|
||||
'TreeTitle'
|
||||
new SelectionGroup_Item(
|
||||
"top",
|
||||
null,
|
||||
$topTitle
|
||||
),
|
||||
new SelectionGroup_Item(
|
||||
'child',
|
||||
$parentField = new TreeDropdownField(
|
||||
"ParentID",
|
||||
"",
|
||||
'SiteTree',
|
||||
'ID',
|
||||
'TreeTitle'
|
||||
),
|
||||
$childTitle
|
||||
)
|
||||
)
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user