mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
ENHANCEMENT Automatically using subsites name in the group title instead of an asterisk (which doesn't really imply any meaning by itself without an index or tooltip)
This commit is contained in:
parent
1121a127da
commit
b4aea98d98
@ -35,8 +35,11 @@ class GroupSubsites extends DataObjectDecorator {
|
||||
}
|
||||
|
||||
function alternateTreeTitle() {
|
||||
if($this->owner->SubsiteID == 0) return " * " . $this->owner->Title;
|
||||
else return $this->owner->Title;
|
||||
if($this->owner->SubsiteID == 0) {
|
||||
return $this->owner->Title;
|
||||
} else {
|
||||
return $this->owner->Title . ' <i>(' . $this->owner->Subsite()->Title . ')</i>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user