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
This commit is contained in:
Sam Minnee 2008-11-14 02:05:01 +00:00
parent d75b00a014
commit 6463503082

View File

@ -1702,6 +1702,9 @@ class SiteTree extends DataObject {
if(!$this->canEdit() && !$this->canAddChildren()) if(!$this->canEdit() && !$this->canAddChildren())
$classes .= " disabled"; $classes .= " disabled";
if(!$this->ShowInMenus)
$classes .= " notinmenu";
$classes .= $this->markingClasses(); $classes .= $this->markingClasses();