Tuesday 02 May 2006 5:39:14 am
As asked in a previous topic, i'd like to remove the size indication in files view line. This is OK (thanks to Lukasz Serwatka) but now I fail adding the published date. Here is my override of design/standard/templates/content/datatype/view/ezbinaryfile.tpl :
{section show=$attribute.content}
<a href={concat( 'content/download/', $attribute.contentobject_id, '/', $attribute.id, '/file/', $attribute.content.original_filename|urlencode)|ezurl}>{$attribute.content.original_filename|wash( xhtml )}</a> ( {$node.object.published|l10n('shortdatetime')} )
{/section}
Let me say I way surprised to see that there was no date/time attribute for file objects (see http://ez.no/doc/ez_publish/technical_manual/3_6/reference/objects/ezbinaryfile) .
It's why I use <i>{$node.object.published|l10n('shortdatetime')}</i> but it returns: <b>( 01/01/1970 1:00 am ) </b>. Any idea ?
|