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!

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 31 2025 06:27:14
Script start
Timing: Jan 31 2025 06:27:14
Module start 'layout'
Timing: Jan 31 2025 06:27:14
Module start 'content'
Timing: Jan 31 2025 06:27:14
Module end 'content'
Timing: Jan 31 2025 06:27:14
Script end

Main resources:

Total runtime0.0208 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.1328151.2109
Module start 'layout' 0.00440.0021 739.343836.6484
Module start 'content' 0.00650.0129 775.992294.0313
Module end 'content' 0.01930.0014 870.023437.9922
Script end 0.0207  908.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002210.4821140.0002
Check MTime0.00105.0395140.0001
Mysql Total
Database connection0.00073.387610.0007
Mysqli_queries0.00209.404630.0007
Looping result0.00000.042510.0000
Template Total0.00104.710.0010
Template load0.00083.671310.0008
Template processing0.00020.948810.0002
Override
Cache load0.00052.197510.0005
General
dbfile0.00020.990280.0000
String conversion0.00000.028740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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