Retrieve list all files stored in the same folder

PIRONET BenoĆ®t <[email protected]> Fri, 13 Jun 2008 15:53:57 +0200
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <27112111568D6346939B1DABE49CD100CE89AC@lux-mail.lux.cronos-technologies.com>
Hi, 

I'd like to store lots of documents in different places in my file manager and let page creators (webmasters) to choose one directory and the template will be responsible for displaying all the files stored in that directory.

First question: 
Is it possible to instanciate the file chooser to choose not a file but a folder? 
if I can't select a folder, I will ask page creator to select one file from the directory we want to list all files and the processing will do the job.
By searching this way, I found that JahiaFile has a getFolderId() method but I can't figure what I can do with the folder id ?

Second question: 
Is there an API to exploid the folder id retrieve from a JahiaFile ?



Third question: How to get the list of file from one folder ??
I saw the jahiaWebdavBaseService but I'm not sure at all that I'm on the right way?


Thank you very much for your replies, 


Benoit Pironet



I'm using Jahia 5.0.3
_______________________________________________
dev_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list