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:
Ingo Schommer 2008-11-24 04:58:42 +00:00
parent 1121a127da
commit b4aea98d98

View File

@ -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>';
}
}
/**