Forums / Setup & design / File's size indication
Franck T.
Friday 14 April 2006 6:35:42 am
Hello. May be a silly question but is there a way to remove the size indication in files' view line.With the classic template:
<div class="attribute-file"> <p>{attribute_view_gui attribute=$node.object.data_map.file icon_size='small' icon_title=$node.name}</p> </div>
I get the text link + the size but no icon ???Thanks.
Ashley Knowles
Monday 17 April 2006 8:20:19 pm
I'd also be interested in this, as I wish to change the line to say "Download <file size>"
Łukasz Serwatka
Monday 17 April 2006 11:41:48 pm
@Franck
By default icon is not displayed, use code below to display it:
{attribute_view_gui attribute=$node.object.data_map.file icon_size='small' icon_title=$node.name icon='yes'}
@AshleyYou can override standard templates for
design/standard/templates/content/datatype/view/ezbinaryfile_direct.tpldesign/standard/templates/content/datatype/view/ezbinaryfile.tpl
You can copy this files to your design dir like
design/(yourdesign)/templates/content/datatype/view/ezbinaryfile_direct.tpldesign/(yourdesign)/templates/content/datatype/view/ezbinaryfile.tpl
or use override system from admin. Then just change template as you need.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog