Acess to content/download for a file in media tab

Author Message

Valenti salas

Thursday 16 December 2004 4:29:12 pm

Hi,

In my own class PDF I have the title and file. On the template I would like to link the name to open file. To do this I have used the code below:

href={concat("http://mysite.com/index.php/admin/content/download/",$object.main_node.contentobject_id,"/2437/file/",$object.main_node.data_map.fichero.content.original_filename)}

the 2437 number is the id of the class param.

the problem is that i need to point to admin directory to find the file, if not ez can't find the file that is in media tab.

Anyone knows why?

I've try to assign polices to anonymous to permit unlimited access to content module but if I'm not loggined in admin interface i can't access to the file download.

Heiner Wurbs

Friday 17 December 2004 3:51:52 am

Hi,

maybe this will work (removing the domain and siteaccess and the idea 2437):
href={concat("content/download/",$object.main_node.contentobject_id,"/",$object.main_node.data_map.fichero.id,"/file/",$object.main_node.data_map.fichero.content.original_filename)}

regards,
heiner

Valenti salas

Sunday 19 December 2004 6:04:11 am

Thanks, but it is wrong yet.

the code you've got me put after the siteaccess name the path where is the node but the file is in media tab. Ez say 'module not found'.

I have tryed different modifications in the url but the only that goes ok is using the admin_siteacces in the url.

Any suggestions?

many thanks.

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