Permalink
Browse files

FEATURE: Add count of backlinks to file details

  • Loading branch information...
1 parent 54507d7 commit 5eef837ce896fd430aa79e3b976b3b59f9c4426e @andrewandante andrewandante committed with chillu Mar 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 filesystem/File.php
View
@@ -357,7 +357,8 @@ function getCMSFields() {
sprintf('<a href="%s" target="_blank">%s</a>', $this->Link(), $this->RelativeLink())
),
new DateField_Disabled("Created", _t('AssetTableField.CREATED','First uploaded') . ':'),
- new DateField_Disabled("LastEdited", _t('AssetTableField.LASTEDIT','Last changed') . ':')
+ new DateField_Disabled("LastEdited", _t('AssetTableField.LASTEDIT','Last changed') . ':'),
+ new ReadonlyField('BackLinkCount', _t('AssetTableField.BACKLINKCOUNT', 'Used on:'), $this->BackLinkTracking()->Count() . ' ' . _t('AssetTableField.PAGES', 'page(s)'))
)
)->setName("FilePreviewData")->addExtraClass('cms-file-info-data')
)->setName("FilePreview")->addExtraClass('cms-file-info');

0 comments on commit 5eef837

Please sign in to comment.