mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +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'
|
'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}.
|
* Extend through {@link updateBackLinkTracking()} in your own {@link Extension}.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user