Forums / General / Direct link to file ('batch upload')

Direct link to file ('batch upload')

Author Message

Maarten Holland

Tuesday 22 February 2005 2:24:24 am

Hello all,

I've got some directories which contain over 1.000 documents. Is there a way that I can make a page which generated some sort of directorylisting? I don't want these documents IN eZ Publish, I just want a direct link to these documents.

Sort of like what other (but of course less) CMS's and photo galleries call a batch upload.

Thank you for your time,

Maarten

Gabriel Ambuehl

Tuesday 22 February 2005 2:40:53 am

I think you'll need to write an extension for that. It's not particularly hard to do, but I can't think of a way to do it with stock ezpublish.

You could, however, use WebDAV and store the files through that so that they automatically end up inside ezpublish.

Visit http://triligon.org

Maarten Holland

Tuesday 22 February 2005 4:42:37 am

Gabriel, thank you for your quick reply.

I'm not a professional developer and not familiar with WebDAV. I'll look in to it to see if it's possible for me to get that going.

Any hints would be greatly appreciated.

Thanks again,

Maarten

Gabriel Ambuehl

Tuesday 22 February 2005 4:46:11 am

It's pretty easy to get it working. Just follow the howto in the docs.

Macs know WebDAV by default, under Linux it highly depends on your environment. For Windows (XP might support it, sorry I don't use it), there are apps like webdrive that allow WebDAV accounts to be used like normal drives.

Visit http://triligon.org

Maarten Holland

Tuesday 22 February 2005 7:32:34 am

From what I've just read I understand that WebDAV is a protocol which allows file control over HTTP. mod_dav for Apache seems to be the practical implementation of this protocol for my Apache webserver on SuSE Linux.

I run my own server but that's just for fun, so I don't know Apache inside out. I've downloaded the tarball and am looking at the instructions on http://www.webdav.org/mod_dav/install.html.

Does it make a difference for eZ whether I link mod_dav dynamically or static?

Cheers,

Maarten

Paul Borgermans

Thursday 24 February 2005 3:47:01 am

Maarten,

You do <b>not need</b> mod_dav for webdav functionality in eZ publish, it is all handled in the ez libs.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Maarten Holland

Thursday 24 February 2005 9:11:02 am

Paul, thank you for your reply.

Unfortunately I've just spent two days on mod_dav and finally got it working just before I read your post... Oh well, perhaps I can use it for someting else.

Perhaps you want to answer another question: I've read in some outdated eZ Publish docs (concerning version 3.2) that it wasn't possible at that time to generate files/pages using WebDAV, just folders. That is, if I've understood it right of course.

I can't find newer docs on this matter. Is it possible to generate pages based on uploaded WebDAV docs?

BTW: This whole WebDAV module really rocks! Thanks eZ!

eZ debug

Timing: Jan 19 2025 01:15:18
Script start
Timing: Jan 19 2025 01:15:18
Module start 'content'
Timing: Jan 19 2025 01:15:18
Module end 'content'
Timing: Jan 19 2025 01:15:19
Script end

Main resources:

Total runtime0.3038 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0110 590.0859180.8359
Module start 'content' 0.01100.0064 770.921997.7578
Module end 'content' 0.01750.2862 868.6797526.0781
Script end 0.3037  1,394.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.2299200.0002
Check MTime0.00140.4487200.0001
Mysql Total
Database connection0.00080.271310.0008
Mysqli_queries0.243780.22831410.0017
Looping result0.00260.85511390.0000
Template Total0.285894.110.2858
Template load0.00090.303510.0009
Template processing0.284993.782710.2849
Override
Cache load0.00060.213010.0006
Sytem overhead
Fetch class attribute can translate value0.00100.340010.0010
XML
Image XML parsing0.00030.083410.0003
General
dbfile0.00260.8663200.0001
String conversion0.00000.002630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs