roxen.lists.roxen.general

Subject Author Date
Re: Creating a file/dir listing via emit dir in sitebuilder Peter Ohlerich <peter[dot]ohlerich[at]uni-bielefeld[dot]d> 20-04-2006
Peter Jönsson schrieb:
> I Think it's the plugin name that messes things up so priority changes
> wouldn't work. Renaming is easy though:
> 
> In the file
> server/modules/tags/diremit.pike
> change:
>   constant plugin_name = "dir";
> to
>   constant plugin_name = "dir-ws";
> 
> and then use emit source="dir-ws" for non-cms emit dirs (like if you
> have mounted something in the regular filesystem into the roxen-cms site
> namespace)
> ...

Hello!

Thanks for your help. I dropped the module for our sitebuilder site
and I successfully got a filelisting with the following code:

<ul>
  <emit source='dir' type='*' >
     <li>Dirname: &_.dirname; Filename: &_.filename; Path: &_.path;
Titel: &_.title; Gr&ouml;&szlig;e: &_.nicefilesize; Version:
&_.revision;</li>
  </emit>
</ul>

The directories are missing. I tried type='directory' and the files
weren't listed, but the dirs are still missing.

With regards,

Peter Ohlerich.

-- 
----------------------------------------------------------------------
HRZ der Universitaet Bielefeld  Phone: +49 521 106-00
Dipl.-Inf. Peter Ohlerich      Email: <Peter.Ohlerich[at]uni-bielefeld.de>
P.O.Box 100131                   WWW: http://www.uni-bielefeld.de/hrz/
D-33501 Bielefeld (Germany)