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 = new SelectionGroup(
|
||||||
"ParentModeField",
|
"ParentModeField",
|
||||||
array(
|
array(
|
||||||
"top//$topTitle" => null, //new LiteralField("Dummy", ''),
|
new SelectionGroup_Item(
|
||||||
"child//$childTitle" => $parentField = new TreeDropdownField(
|
"top",
|
||||||
|
null,
|
||||||
|
$topTitle
|
||||||
|
),
|
||||||
|
new SelectionGroup_Item(
|
||||||
|
'child',
|
||||||
|
$parentField = new TreeDropdownField(
|
||||||
"ParentID",
|
"ParentID",
|
||||||
"",
|
"",
|
||||||
'SiteTree',
|
'SiteTree',
|
||||||
'ID',
|
'ID',
|
||||||
'TreeTitle'
|
'TreeTitle'
|
||||||
|
),
|
||||||
|
$childTitle
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user