mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
adjustment to show Page Type title on SiteTree mouseover
This commit is contained in:
parent
3d2d607be1
commit
e554e82afa
@ -529,6 +529,12 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
'listViewLink' => $this->LinkListViewChildren($node->ID),
|
'listViewLink' => $this->LinkListViewChildren($node->ID),
|
||||||
'rootTitle' => $rootTitle,
|
'rootTitle' => $rootTitle,
|
||||||
'extraClass' => $this->getTreeNodeClasses($node),
|
'extraClass' => $this->getTreeNodeClasses($node),
|
||||||
|
'Title' => sprintf(
|
||||||
|
'(%s: %s) %s',
|
||||||
|
trim(_t('SilverStripe\Admin\LeftAndMain.PAGETYPE', 'Page type'), ' :'),
|
||||||
|
$node->i18n_singular_name(),
|
||||||
|
$node->Title
|
||||||
|
)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<li id="record-{$node.ID}" data-id="{$node.ID}" data-pagetype="{$node.ClassName}" class="$markingClasses $extraClass"><ins class="jstree-icon"> </ins>
|
<li id="record-{$node.ID}" data-id="{$node.ID}" data-pagetype="{$node.ClassName}" class="$markingClasses $extraClass"><ins class="jstree-icon"> </ins>
|
||||||
<a href="{$node.CMSEditLink.ATT}" title="{$node.Title.ATT}"><ins class="jstree-icon"> </ins>
|
<a href="{$node.CMSEditLink.ATT}" title="{$Title.ATT}"><ins class="jstree-icon"> </ins>
|
||||||
<span class="text">{$node.TreeTitle}</span>
|
<span class="text">{$node.TreeTitle}</span>
|
||||||
</a>
|
</a>
|
||||||
$SubTree
|
$SubTree
|
||||||
|
Loading…
Reference in New Issue
Block a user