cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: DirectoryGenerator and mime-types
Date Fri, 15 Mar 2002 12:59:12 GMT
> From: Thomas 'Dent' Mirlacher [mailto:dent@cosy.sbg.ac.at]
> 
> hi list,
> 
> i don't know if this is the proper list (but i guess you will give me
a hint
> if not :) to ask this question:
> 
> i would like to add an attribute for each entry (file) in the output
> DirectoryGenerator generates.
> 
> why? i'm working on a pet project to add the capability using
thumbnails
> in the directorylisting (well obviously this can also be used for
photo
> galeries and other things ... thanks to the pipeline in cocoon)
> 
> the problem: i don't know where to find the proper functions to
extract
> the mime-type from a file (using its magic, and not the extension)

If I'm not mistaken, there is no such function. However, take a look at
ImageDirectoryGenerator which could be of help to you.

Also, take a look at ImageReader in the scratchpad.

Vadim

> 
> any help/hint (also flames) will be appreciated.
> 
> 	++dent
> 
> --
> in some way i do, and in some way i don't.


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message