Re: How to access WEBDAV content from within a template?

[email protected]
Newsgroups gmane.comp.cms.jahia.template
Message-ID <OFBE801E3D.A7344543-ONC125710F.003C4127-C125710F.003CC162@generic.se>
You can declare a File field, either alone or in a Container with some
other fields and let the user pick a file from the webdav storage using the
standard field form.

Regards
/Lars




                                                                           
             "Juliette Mainka"                                             
             <juliette.mainka@                                             
             atosorigin.com>                                            To 
                                       <[email protected]>           
             2006-02-08 11:23                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         How to access WEBDAV content from   
             <template_list@ja         within a template?                  
                 hia.org>                                                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hello,

In a template, I want to list the content of a given WEBDAV directory. I
tried to access the directory via the Apache Slide/Webdav API (class
WebdavResource), but to use this, I need to have the current user's
password. Is there a way to retrieve this password?

Or is there perhaps another way to access Webdav content? For example, in
the file chooser popup window/engine, I noticed that the user can see and
use files according to his permissions on them, without having to enter his
password again. Does anyone know how this is done, and if this can also be
used from within a template?

Thanks in advance.

Regards,
Juliette
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.