Hello Thomas,
This is generaly the method which is used to build the file links in the .tpl.
This should give you the latest version of the file:
>>>>>>>>>>>>>>
{concat("content/download/",$attribute.contentobject_id,"/",$attribute.id,"/file/",$attribute.content.original_filename)|ezurl}
>>>>>>>>>>>>>>
You can use it using something like the following code:
>>>>>>>>>>>>>>>
{def $attribute = $node.data_map.file}
<h4><a
href={concat("content/download/",$attribute.contentobject_id,"/",$attribute.id,"/file/",$attribute.content.original_filename)|ezurl}
title="{$node.name|wash}">{$node.name}</a><span class="extra"> - (format
{$attribute.content.mime_type_part|upcase}, {$attribute.content.filesize|si(
byte )|extract(0, $attribute.content.filesize|si( byte
)|count_chars|dec)}o)</span></h4>
{undef $attribute}
>>>>>>>>>>>>>>>
Good luck with this,
Paul
________________________________________
De : [email protected] [[email protected]] de la part
de Thomas Negeli [celum] [[email protected]]
Date d'envoi : mercredi 9 juin 2010 09:10
À : [email protected]
Objet : [Sdk-public] Instruction on how to update file attribute
Hi list members,
is there an instruction how to update a file attribute of an object?
If I insert a PDF into an object the first time, I can download this file later
with the correct content (lets say version 1).
I later do an update of this attribute and I can download version 2 in the
admin backend.
If I download this attribute file PDF in the public frontend, I get version 1.
The interesting thing is, the link I use to download the pdf is exactly the
same in the admin and public version.
If I do a download the next day (I can't find a rule behind), it works in
frontend and backend.
Any idea?
Thank you in advance
Thomas
--
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public
--
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public