Thursday 14 October 2010 1:30:49 am - 2 replies
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!