How to directly open file?

How to directly open file?

Wednesday 29 December 2004 2:19:37 am - 3 replies

Author Message

Valenti salas

Wednesday 29 December 2004 10:29:30 am

I'm in the same problem.

I advice you if i found an answer.

bill hung

Monday 03 January 2005 6:59:17 pm

Dear Valenti,

do you get the way?

my ezpublish's version is 3.3,

I will upgrade it to 3.5 and see whether the problem is display yet!

thanks.

Jan Borsodi

Tuesday 04 January 2005 1:20:43 am

The <i>ezfiledirect</i> will only work if the links point to the file on the filesystem.

Do make this work you will have to change your template code for the datatype, it should look something like:

<a href="{$attribute.content.filepath|ezroot}">download</a>

You will also need to make sure your webserver is configured to server these files directly.

In general I would recommend to use the <i>ezfilepasstrough</i> handler, unless you have some problems with it. The <i>ezfiledirect</i> handler cannot check user permissions for instance.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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.