Hello Thomas, I had indeed misunderstood your query.
I believe you should be able modify the "content expiry" cache of your "file" elements by playing with your pragma cache settings in the "site.ini" file: Maybe something like this could help: Pragma[/content/download]=no-cache This is usually used for reverse proxy management, but I believ this is also taken into account by the browser cache. Another method, is to rename the files as you said for every new version, since changing creates a new expiry date. Another workarround could be to append a "?" followed by the version value at the end of the url of the downloaded element, although this method is normaly used more for javascript files. Good luck with this, Paul ________________________________________ De : Thomas Negeli [celum] [[email protected]] Date d'envoi : mercredi 9 juin 2010 12:15 À : [email protected] Cc : Paul Leclercq Objet : Re: [[w3-spam]] - RE : [Sdk-public] Instruction on how to update file attribute - E-Mail-Adresse wurde in Betreff-Zeile gefunden. Hi Paul, I know this already from the default view template for files, that is used by the system. Building the link is not the problem. I've found a workaround by cleaning my browser cache. I've now set no-cache as an html meta tag entry, but that makes no difference for downloads. Only works if I manually clean the cache. By using a new filename for every new pdf (appending timestamp) i always get the correct version of the document. Interesting! If I just use insertRegularFile on eZBinaryFileType does not seem to delete the old content from the disk. How to do this? Am 09.06.2010 um 09:27 schrieb Paul Leclercq: 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]<mailto:[email protected]> [[email protected]] de la part de Thomas Negeli [celum] [[email protected]] Date d'envoi : mercredi 9 juin 2010 09:10 À : [email protected]<mailto:[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]<mailto:[email protected]> http://lists.ez.no/mailman/listinfo/sdk-public Thomas Negeli Project Consultant celum SWIFT - Agile Digital Asset Management celum DYNAMO - Dynamic Brand Management celum MOVIS - Corporate Video Asset Management celum IMAGINE - Enterprise Digital Asset Management celum™- ALWAYS AHEAD. Software to automate marketing, sales & communication processes Linz/Vienna/Paris/Essen/Rome/San José -------------------------------------------------------------------------------------- celum gmbh europaplatz 4 a - 4020 linz, austria telephone: +43 (0) 732 71 65 29 128 fax: +43 (0) 732 71 65 29 3 [email protected]<mailto:[email protected]> http://www.celum.com -------------------------------------------------------------------------------------- Carl Zeiss, CreditSuisse, Decathlon, Hochtief, Linde Group, L'Oreal, MagnaSteyr, Migros, Silhouette, Specialized, Terex, Universal Music, University of St. Gallen, US Army, voestalpine, Volkswagen and 300 other leading organizations use celum technology to automate marketing, sales & communication processes. -------------------------------------------------------------------------------------- celum gmbh is registered at Landesgericht Linz/Austria commercial register sub folio No. FN 246117m -- Sdk-public mailing list [email protected] http://lists.ez.no/mailman/listinfo/sdk-public
