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

View File

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