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