From 50ff9b69620088dcd41856f5436d299c01f575d3 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sat, 11 Feb 2012 13:58:30 +1300 Subject: [PATCH] ENHACEMENT: include sitetree on the CMSPage editing screen --- code/controllers/CMSPageEditController.php | 12 ++++++++++++ code/controllers/CMSPagesController.php | 1 - templates/CMSPageController_EditForm_Left.ss | 9 +++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 templates/CMSPageController_EditForm_Left.ss diff --git a/code/controllers/CMSPageEditController.php b/code/controllers/CMSPageEditController.php index a088ae9c..b1dea292 100644 --- a/code/controllers/CMSPageEditController.php +++ b/code/controllers/CMSPageEditController.php @@ -1,8 +1,20 @@ Left = $left->process($this); + + return $form; + } } \ No newline at end of file diff --git a/code/controllers/CMSPagesController.php b/code/controllers/CMSPagesController.php index 54bb2e0c..9d882284 100644 --- a/code/controllers/CMSPagesController.php +++ b/code/controllers/CMSPagesController.php @@ -37,5 +37,4 @@ class CMSPagesController extends CMSMain { function PreviewLink() { return false; } - } \ No newline at end of file diff --git a/templates/CMSPageController_EditForm_Left.ss b/templates/CMSPageController_EditForm_Left.ss new file mode 100644 index 00000000..0a3e16e5 --- /dev/null +++ b/templates/CMSPageController_EditForm_Left.ss @@ -0,0 +1,9 @@ +
+
+ $SiteTreeAsUL +
+
+ +
+

$SiteConfig.Title

+