Permalink
Browse files

MINOR: restore backlinkcount into cms module. (removed from framework…

  • Loading branch information...
1 parent d55eb13 commit facc8ba653674947649ee07fae22f82f15cef7f9 @wilr wilr committed with chillu Jun 19, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 code/model/SiteTreeFileExtension.php
@@ -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}.
*

0 comments on commit facc8ba

Please sign in to comment.