File line or embed view?

Author Message

Glenn MacGregor

Thursday 21 October 2004 11:27:06 am

Hi,

I have an overridden template for the file class in my products section. My template contains

<div class="supportLinks">
{attribute_view_gui attribute=$content_version.data_map.file}
</div>

This is PDF file I am looking at. The {attribute_view_gui .... line prints a link to the file using its name and size. I have traced down where that actually gets printed, ezbinaryfile.tpl.

I want to change what that prints so I thought I would override the line view template specifing the file class and products section. This did not work so I tried to override the embed the same way, again this didn't work.

So what template does {attribute_view_gui attribute=$content_version.data_map.file} call?

Thanks

Ɓukasz Serwatka

Thursday 21 October 2004 2:25:37 pm

Hi,

You can use this

<a href={concat("content/download/",$node.object.data_map.file.contentobject_id,"/"
,$node.object.data_map.file.id,"/file/",
$node.object.data_map.file.content.original_filename|urlencode)|ezurl}>

{$node.object.data_map.file.content.original_filename|wash(xhtml)}</a>
{$node.object.data_map.file.content.filesize|si(byte)}

{$node.object.data_map.file.content.original_filename|wash(xhtml)} - file name

{$node.object.data_map.file.content.filesize|si(byte)} - file size

I hope this help

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.