mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR: restore backlinkcount into cms module. (removed from framework in 266a61221c
)
This commit is contained in:
parent
d55eb13ecc
commit
facc8ba653
@ -9,6 +9,14 @@ class SiteTreeFileExtension extends DataExtension {
|
||||
'BackLinkTracking' => 'SiteTree'
|
||||
);
|
||||
|
||||
function updateCMSFields(FieldList $fields) {
|
||||
$fields->insertAfter(new ReadonlyField('BackLinkCount',
|
||||
_t('AssetTableField.BACKLINKCOUNT', 'Used on:'),
|
||||
$this->BackLinkTracking()->Count() . ' ' . _t('AssetTableField.PAGES', 'page(s)')),
|
||||
'LastEdited'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Extend through {@link updateBackLinkTracking()} in your own {@link Extension}.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user