Renaud Richardet wrote:
> Hello Dev's,
>
> What is the difference between the meta tags
<lenya:contentType> and
> <lenya:extension>?
>
> Is it right to say:
>
> xhtml ressource type:
> - contentType: xml
> - extension: xhtml
The extension is the source extension, so this is right if
you
store your documents using the xhtml extension.
>
> opendocument ressource type:
> - contentType: odt
> - extension: odt
>
> "image" ressource type
> - contentType: jpg/png/gif???
> - extension: jpg/png/gif???
>
> And why bother to store the extension in a meta tag,
instead of
> retrieving it directly from the file?
There's the problem - you can't access the source without
knowing the extension.
> More concretely, I am trying to display the correct
file extension in
> the directory listing of webdav. This way, you can edit
the files with
> Dreamweaver. I'm currently using the
<lenya:extension> meta tag
This is not really the way to go, the source extension is
only meant for
internal storage purposes. I'd recommend to use custom meta
data to
store the WebDAV extension, unless there's a better
solution.
-- Andreas
> and
> getting the extension with doc.getSourceExtension(),
see
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38926
a>
> Now, this works fine with odt, but fails with xhtml: I
tried to add
> <lenya:extension>xhtml</lenya:extension>,
but then you cannot load the
> page in Lenya anymore.
>
> Thanks for some hints,
> Renaud
>
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache
Lenya
http://www.wyona.com
http://lenya.apache.org
andreas.hartmann wyona.com andreas apache.org
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe lenya.apache.org
For additional commands, e-mail: dev-help lenya.apache.org
|