mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
NEW Reorder summary fields and make getFieldsForFile extensible
This commit is contained in:
parent
11819a1e16
commit
aedc970cf4
@ -73,8 +73,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
private static $summary_fields = array(
|
||||
'Filename' => 'Filename',
|
||||
'Title' => 'Title',
|
||||
'getRelatedPages.count' => 'Page Use',
|
||||
'ViewCount' => 'ViewCount',
|
||||
'getRelatedPages.count' => 'Page Use'
|
||||
);
|
||||
|
||||
/**
|
||||
@ -1127,7 +1127,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
new ReadonlyField("PublishedOn", "Published on". ':', $publishedOnValue),
|
||||
new ReadonlyField("ReferencedOn", "Referenced on". ':', $relationListCountValue),
|
||||
new ReadonlyField("ViewCount", "View count". ':', $this->ViewCount)
|
||||
)
|
||||
)->setName('FilePreviewDataFields')
|
||||
)->setName("FilePreviewData")->addExtraClass('cms-file-info-data')
|
||||
)->setName("FilePreview")->addExtraClass('cms-file-info')
|
||||
);
|
||||
@ -1135,6 +1135,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
$fields->addExtraClass('dmsdocument-documentdetails');
|
||||
$urlField->dontEscape = true;
|
||||
|
||||
$this->extend('updateFieldsForFile', $fields);
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user