ENHACEMENT: include sitetree on the CMSPage editing screen

This commit is contained in:
Will Rossiter 2012-02-11 13:58:30 +13:00
parent 8f25c8ee93
commit 50ff9b6962
3 changed files with 21 additions and 1 deletions

View File

@ -1,8 +1,20 @@
<?php
/**
* @package cms
*/
class CMSPageEditController extends CMSMain {
static $url_segment = 'page/edit';
static $url_rule = '/$Action/$ID/$OtherID';
static $url_priority = 41;
public function getEditForm($id = null, $fields = null) {
$left = new SSViewer('CMSPageController_EditForm_Left');
$form = parent::getEditForm($id, $fields);
$form->Left = $left->process($this);
return $form;
}
}

View File

@ -37,5 +37,4 @@ class CMSPagesController extends CMSMain {
function PreviewLink() {
return false;
}
}

View File

@ -0,0 +1,9 @@
<div class="cms-panel-content center">
<div class="cms-tree" data-url-tree="$Link(getsubtree)">
$SiteTreeAsUL
</div>
</div>
<div class="cms-panel-content-collapsed">
<h3 class="cms-panel-header">$SiteConfig.Title</h3>
</div>