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();