Forums / General / Direct link to file ('batch upload')
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
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,
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.
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,
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
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!