MINOR: restore backlinkcount into cms module. (removed from framework in 266a61221c)

This commit is contained in:
Will Rossiter 2012-06-19 22:56:42 +12:00 committed by Ingo Schommer
parent 78163f9403
commit 3b7af0e945

View File

@ -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}.
*