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 @@ +