mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
ENHACEMENT: include sitetree on the CMSPage editing screen
This commit is contained in:
parent
8f25c8ee93
commit
50ff9b6962
@ -1,8 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package cms
|
||||||
|
*/
|
||||||
class CMSPageEditController extends CMSMain {
|
class CMSPageEditController extends CMSMain {
|
||||||
|
|
||||||
static $url_segment = 'page/edit';
|
static $url_segment = 'page/edit';
|
||||||
static $url_rule = '/$Action/$ID/$OtherID';
|
static $url_rule = '/$Action/$ID/$OtherID';
|
||||||
static $url_priority = 41;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -37,5 +37,4 @@ class CMSPagesController extends CMSMain {
|
|||||||
function PreviewLink() {
|
function PreviewLink() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
9
templates/CMSPageController_EditForm_Left.ss
Normal file
9
templates/CMSPageController_EditForm_Left.ss
Normal 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>
|
Loading…
Reference in New Issue
Block a user