From c94308d21de1eb5082054e3523e112747cfed390 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 8 Mar 2012 17:31:02 +0100 Subject: [PATCH] MINOR Implemented "Add new" link in CMSPagesController --- code/controllers/CMSPagesController.php | 4 ++++ templates/Includes/CMSPagesController_ContentToolbar.ss | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/controllers/CMSPagesController.php b/code/controllers/CMSPagesController.php index 84ff954e..32957e09 100644 --- a/code/controllers/CMSPagesController.php +++ b/code/controllers/CMSPagesController.php @@ -39,6 +39,10 @@ class CMSPagesController extends CMSMain { return false; } + function AddLink() { + return singleton("CMSPageAddController")->Link(); + } + public function currentPageID() { return false; } diff --git a/templates/Includes/CMSPagesController_ContentToolbar.ss b/templates/Includes/CMSPagesController_ContentToolbar.ss index 9941df02..f5271236 100644 --- a/templates/Includes/CMSPagesController_ContentToolbar.ss +++ b/templates/Includes/CMSPagesController_ContentToolbar.ss @@ -13,7 +13,7 @@
- <% _t('CMSMain.AddNewButton', 'Add new') %> + <% _t('CMSMain.AddNewButton', 'Add new') %>