MINOR Fixed "parent mode" default selection for "add page" panel, added CSS class for easier styling

This commit is contained in:
Ingo Schommer 2012-03-12 10:54:14 +01:00
parent 50b4605b30
commit 6768628606

View File

@ -63,8 +63,8 @@ class CMSPageAddController extends CMSPageEditController {
)
);
$parentField->setShowSearch(true);
$parentModeField->setValue("child");
$parentModeField->setValue($this->request->getVar('ParentID') ? 'child' : 'top');
$parentModeField->addExtraClass('parent-mode');
// CMSMain->currentPageID() automatically sets the homepage,
// which we need to counteract in the default selection (which should default to root, ID=0)