Avoid encoded HTML breadcrumbs

This commit is contained in:
Ingo Schommer 2013-10-11 00:27:14 +02:00
parent c8dc9a9377
commit aae6b2b296
2 changed files with 10 additions and 2 deletions

View File

@ -53,7 +53,11 @@ class SiteConfig extends DataObject implements PermissionProvider {
*/
public function getCMSFields() {
$groupsMap = Group::get()->map('ID', 'Breadcrumbs')->toArray();
$groupsMap = array();
foreach(Group::get() as $group) {
// Listboxfield values are escaped, use ASCII char instead of »
$groupsMap[$group->ID] = $group->getBreadcrumbs(' > ');
}
asort($groupsMap);
$fields = new FieldList(

View File

@ -1978,7 +1978,11 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
* @return FieldList
*/
public function getSettingsFields() {
$groupsMap = Group::get()->map('ID', 'Breadcrumbs')->toArray();
$groupsMap = array();
foreach(Group::get() as $group) {
// Listboxfield values are escaped, use ASCII char instead of »
$groupsMap[$group->ID] = $group->getBreadcrumbs(' > ');
}
asort($groupsMap);
$fields = new FieldList(