From 58416e5dea48da7af8795abcdc268a28a50ee755 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 21 Apr 2011 08:50:13 +1200 Subject: [PATCH] ENHANCEMENT Added CMSPagesController --- code/controller/CMSPagesController.php | 20 ++++ javascript/CMSPagesController.Tree.js | 1 - .../Includes/CMSPagesController_Content.ss | 94 +++++++++++++++++++ 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 code/controller/CMSPagesController.php create mode 100644 templates/Includes/CMSPagesController_Content.ss diff --git a/code/controller/CMSPagesController.php b/code/controller/CMSPagesController.php new file mode 100644 index 00000000..98a6f74e --- /dev/null +++ b/code/controller/CMSPagesController.php @@ -0,0 +1,20 @@ +redirect(Controller::join_links($c->Link('show'), $request->param('ID'))); + } + +} \ No newline at end of file diff --git a/javascript/CMSPagesController.Tree.js b/javascript/CMSPagesController.Tree.js index a2d91853..3aeca1d9 100644 --- a/javascript/CMSPagesController.Tree.js +++ b/javascript/CMSPagesController.Tree.js @@ -1,5 +1,4 @@ (function($) { - // Load tree links directly rather than through ajax into .cms-edit-form. $('.cms-tree').bind('select_node.jstree', function(e, data) { var node = data.rslt.obj, url = $(node).find('a:first').attr('href'); if(url && url != '#') document.location.href = url; diff --git a/templates/Includes/CMSPagesController_Content.ss b/templates/Includes/CMSPagesController_Content.ss new file mode 100644 index 00000000..407c5abf --- /dev/null +++ b/templates/Includes/CMSPagesController_Content.ss @@ -0,0 +1,94 @@ +
+ + + +
+ +
+ + + + + + + + <% control SiteTreeFilterOptions %> + + <% end_control %> + +
+ +
 
+ + +
+
+ +
+ +
+ +
+
+ $SiteTreeAsUL +
+ +
+ $BatchActionsForm +
+ + <% if CanOrganiseSitetree %> +
+ + +
+ <% end_if %> +
+ +
+ ... +
+ +
+ ... +
+ +
+ +
\ No newline at end of file