Use new SelectionGroup_Item API in "add page" UI

This commit is contained in:
Ingo Schommer 2012-11-30 15:34:10 +01:00
parent 027a41aec7
commit 2cd46ff0ed

View File

@ -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
)
)
),