mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
made breadcrumbs-delimiter configurable
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47627 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
54de788984
commit
895370c038
@ -171,7 +171,15 @@ class SiteTree extends DataObject {
|
||||
static $extensions = array(
|
||||
"Hierarchy",
|
||||
"Translatable('Title', 'MenuTitle', 'Content', 'URLSegment', 'MetaTitle', 'MetaDescription', 'MetaKeywords', 'Status')",
|
||||
"Versioned('Stage', 'Live')" );
|
||||
"Versioned('Stage', 'Live')"
|
||||
);
|
||||
|
||||
/**
|
||||
* Delimit breadcrumb-links generated by BreadCrumbs()
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $breadcrumbs_delimiter = " » ";
|
||||
|
||||
|
||||
/**
|
||||
@ -429,7 +437,7 @@ class SiteTree extends DataObject {
|
||||
$page = $page->Parent;
|
||||
}
|
||||
|
||||
return implode(" » ", array_reverse($parts));
|
||||
return implode(self::$breadcrumbs_delimiter, array_reverse($parts));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user