Downloading from media library

Author Message

Sean Kelly

Tuesday 13 September 2005 2:04:52 pm

Hi,

I've uploaded some files to my 3.6 installation and associated them to a page. They are mainly .DOC with some .PDF files containing technical reference material.

I can create a link to them for people to "download this file" by using the ezobject:// link in a link href tag. When you view the site and click on these links, however, it takes you to an error page and provides you with a login form. I assume once logged in you can get the file.

My problem is that I don't want (or actually need) people to log into my site. I just want normal web users to be able to get my reference files.

How do I do this?

Thanks,

Sean.

Felix Laate

Tuesday 13 September 2005 2:43:00 pm

Hi Sean,

you could let the anonymous user role get read access to object of the file class in the media section (or a subtree of it).

At least that's the way I do it.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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

eZ debug

Timing: Jan 19 2025 04:38:49
Script start
Timing: Jan 19 2025 04:38:49
Module start 'layout'
Timing: Jan 19 2025 04:38:49
Module start 'content'
Timing: Jan 19 2025 04:38:50
Module end 'content'
Timing: Jan 19 2025 04:38:50
Script end

Main resources:

Total runtime0.8976 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 592.7734152.6250
Module start 'layout' 0.00560.0029 745.398439.4609
Module start 'content' 0.00850.8876 784.8594518.1094
Module end 'content' 0.89610.0015 1,302.96888.1641
Script end 0.8975  1,311.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3569160.0002
Check MTime0.00120.1320160.0001
Mysql Total
Database connection0.00090.102210.0009
Mysqli_queries0.849194.6029540.0157
Looping result0.00060.0708520.0000
Template Total0.866696.620.4333
Template load0.00220.244620.0011
Template processing0.864496.307720.4322
Template load and register function0.00010.015110.0001
states
state_id_array0.00130.142910.0013
state_identifier_array0.00130.146820.0007
Override
Cache load0.00180.1994160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.096320.0004
Fetch class attribute name0.00140.159430.0005
XML
Image XML parsing0.00070.077220.0003
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00070.0824160.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs