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