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 d55eb13ecc
commit facc8ba653
1 changed files with 8 additions and 0 deletions

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