Problems with pdf files

Problems with pdf files

Thursday 14 October 2010 1:30:49 am - 2 replies

Author Message

Elena Ivanova

Thursday 14 October 2010 5:38:08 am

Hello Romain,

I would suggest to use:

{$node.data_map.file|attribute(show)}

for file (binary) attribute details. I think that to fetch original file, you can use

{$node.data_map.file.content.filepath|ezroot}

Hope this helps,

Elena

Romain Bremaud

Thursday 14 October 2010 6:54:05 am

Thanks for your answer Helena.

I found a solution for my problem. Before I have this script :

href={concat("file/download/",$node.node_id)|ezurl}

I replaced by that :

href={concat("content/download/",$node.data_map.file.contentobject_id,"/",$node.data_map.file.id,"/file/",$node.data_map.file.content.original_filename)|ezurl('no')}

With that the application propose to download the file directly.

Romain Bremaud
Les clefs du net

You must be logged in to post messages in this topic!

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