List Info

Thread: meta tags: and




meta tags: <lenya:contentType> and <lenya:extension>
user name
2006-03-14 01:48:18
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

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?

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 and 
getting the extension with doc.getSourceExtension(), see 
http://issues.apache.org/bugzilla/show_bug.cgi?id=38926
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

-- 
Renaud Richardet
COO America
Wyona Inc.  -   Open Source Content Management   -   Apache
Lenya
office +1 857 776-3195                     mobile +1 617 230
9112
renaud.richardet <at> wyona.com              http://www.wyona.com


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

meta tags: <lenya:contentType> and <lenya:extension>
user name
2006-03-14 16:51:09
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
> 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.hartmannwyona.com                     andreasapache.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )