Skip to content
This repository
Browse code

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

  • Loading branch information...
commit facc8ba653674947649ee07fae22f82f15cef7f9 1 parent d55eb13
Will Rossiter authored June 19, 2012 chillu committed June 20, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  code/model/SiteTreeFileExtension.php
8  code/model/SiteTreeFileExtension.php
@@ -9,6 +9,14 @@ class SiteTreeFileExtension extends DataExtension {
9 9
 		'BackLinkTracking' => 'SiteTree'
10 10
 	);
11 11
 
  12
+	function updateCMSFields(FieldList $fields) {
  13
+		$fields->insertAfter(new ReadonlyField('BackLinkCount', 
  14
+			_t('AssetTableField.BACKLINKCOUNT', 'Used on:'), 
  15
+			$this->BackLinkTracking()->Count() . ' ' . _t('AssetTableField.PAGES', 'page(s)')), 
  16
+			'LastEdited'
  17
+		);
  18
+	}
  19
+
12 20
 	/**
13 21
 	 * Extend through {@link updateBackLinkTracking()} in your own {@link Extension}.
14 22
 	 * 

0 notes on commit facc8ba

Please sign in to comment.
Something went wrong with that request. Please try again.