Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use new SelectionGroup_Item API in "add page" UI

  • Loading branch information...
commit 2cd46ff0ed7004cb583383dbd05effaae3a19ae2 1 parent 027a41a
Ingo Schommer chillu authored
Showing with 15 additions and 7 deletions.
  1. +15 −7 code/controllers/CMSPageAddController.php
22 code/controllers/CMSPageAddController.php
View
@@ -47,13 +47,21 @@ public function AddForm() {
$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
)
)
),
Please sign in to comment.
Something went wrong with that request. Please try again.