mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
d75b00a014
commit
6463503082
@ -1702,6 +1702,9 @@ class SiteTree extends DataObject {
|
||||
|
||||
if(!$this->canEdit() && !$this->canAddChildren())
|
||||
$classes .= " disabled";
|
||||
|
||||
if(!$this->ShowInMenus)
|
||||
$classes .= " notinmenu";
|
||||
|
||||
$classes .= $this->markingClasses();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user