Hi all,
I am looking into customizing lenya regarding the internal mapping of
documents/assets in 1.4.
I have a dir which not only contain html/xml files but mainly pdf, avi,
mpg, png, tex, ... The idea till now in lenya is that those files would
be stored in a different dir then the content.
Further we always created a certain structure for our documents. e.g.
creating a doc-id like /samples/assets will create:
{area}/samples/assets/index_{lang}.xml
{area}/samples/assets/index_{lang}.xml.meta
This prevents that one can re use the document mapping api for assets
the way I would like it. :(
The idea is to generalize the document API to something more general
(implementing e.g. http://wiki.apache.org/lenya/ProposalContentModel).
It should be possible to have following workflow:
- create new asset (contentItem) screen
(doc-id[contentID]: /bar/foo.avi)
-- upload asset - stored in {area}/bar/foo.avi
-- add/edit meta data - stored in {area}/bar/foo.avi.meta
- assets (contentItem) url
-- /bar/foo.avi -> will return the actual file
-- /bar/foo.avi.meta.xml -> will return the meta data (raw xml)
-- /bar/foo.avi.meta.html -> will return the meta data rendered as html
view (could be mapped to /bar/foo.avi.html for resource-types "media")
I found 2 references to "index" as prefix for the mapping:
- DocumentHelper.java
- DefaultDocumentIdToPathMapper.java
So for my first tests about changing the mapping I will create my own
implemetations of this (at least) two classes in my pub, right?
What else do I need be aware of?
TIA for any imformation.
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]