From 79f5bd5db429a8f8591f4c568270747e5c4fb371 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 16 Aug 2007 06:25:17 +0000 Subject: [PATCH] Added ability to add extensions to LeftAndMain, and supply and augmentInit method on them Added the ability to define getCMSTreeTitle in a LeftAndMain extension to change the main title at the top of the tree git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40222 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index f287c596..28c23764 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -68,6 +68,9 @@ abstract class LeftAndMain extends Controller { Requirements::javascript('sapphire/javascript/Validator.js'); Requirements::css("sapphire/css/SubmittedFormReportField.css"); + + $dummy = null; + $this->extend('augmentInit', $dummy); } /** @@ -286,7 +289,12 @@ abstract class LeftAndMain extends Controller { if(!$rootID) { $rootLink = $this->Link() . '0'; - $siteTree = "