Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FEATURE: Add count of backlinks to file details

  • Loading branch information...
commit 5eef837ce896fd430aa79e3b976b3b59f9c4426e 1 parent 54507d7
@ajoneil ajoneil authored chillu committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  filesystem/File.php
View
3  filesystem/File.php
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.