From 64635030823ce3dc70e9ee67cb21d1cd89a0211b Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 14 Nov 2008 02:05:01 +0000 Subject: [PATCH] Added notinmenu class to CMS tree items that aren't in menus git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@65912 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index bbe308190..158160b33 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1702,6 +1702,9 @@ class SiteTree extends DataObject { if(!$this->canEdit() && !$this->canAddChildren()) $classes .= " disabled"; + + if(!$this->ShowInMenus) + $classes .= " notinmenu"; $classes .= $this->markingClasses();