When i click on the filename it download the file,
I also want to add a download button next to it, so that clicking on it also downloads the file,
I tried doing it like this
array (
'name' => 'filename',
'displayParams' =>
array (
'link' => 'filename',
'id' => 'document_revision_id',
),
'customCode' => '<a href="index.php?entryPoint=download&id={$fields.document_revision_id.value}&type=Documents">{$fields.filename.value}<img src="./themes/suite8/images/view_inline.png" alt="View Inline"></a>',
),
but it doesnt work