Hi Andreas

Andreas Hartmann wrote:
Hi Lenya devs,

everytime I'm using the page envelope input module, it feels a little strange:

- It's verbose: {page-envelope:...}

- It mixes concerns (document info, request info, publication info).


IMO it should be replaced by more "single-minded" modules:


+1

Does that mean that there will be three modules:

- DocumentModule
- RequestModule -> Cocoon
- PublicationModule

?



PageEnvelope.CONTEXT                           {request:contextPath}

PageEnvelope.AREA                              {doc:area}
PageEnvelope.PUBLICATION_LANGUAGES_CSV         {doc:languages-csv}
PageEnvelope.DOCUMENT                          {doc:document}
PageEnvelope.DOCUMENT_ID                       {doc:id}
PageEnvelope.DOCUMENT_NAME                     {doc:name}
PageEnvelope.DOCUMENT_LABEL                    {doc:label}
PageEnvelope.DOCUMENT_URL                      {doc:url}
PageEnvelope.DOCUMENT_URL_WITHOUT_LANGUAGE     {doc:default-language-url}
PageEnvelope.DOCUMENT_EXTENSION                {doc:extension}
PageEnvelope.DOCUMENT_TYPE                     {doc:resource-type}
PageEnvelope.DOCUMENT_LANGUAGE                 {doc:language}
PageEnvelope.DOCUMENT_LANGUAGES                {doc:languages}
PageEnvelope.DOCUMENT_LANGUAGES_CSV            {doc:languages-csv}
PageEnvelope.DOCUMENT_LASTMODIFIED             {doc:lastmodified}
PageEnvelope.DOCUMENT_PATH                     obsolete (use lenyadoc:/)

Additionally, I would suggest to add the mime type of the document:

{doc:mime-type}

This means to store the mime-type with the document during document
creation analog to the resource type. By default, it's "text/html" or
"application/xhtml+xml" for existing xhtml documents. The mime-type
would be useful to extend the notion of a document not only to xhtml but
also for binary formats like pdf, png, etc.

WDYT?

- Felix


PageEnvelope.PUBLICATION_ID                    {pub:id}
PageEnvelope.PUBLICATION                       {pub:publication}
PageEnvelope.DEFAULT_LANGUAGE                  {pub:default-language}
PageEnvelope.BREADCRUMB_PREFIX {pub:...} is this still needed? PageEnvelope.SSL_PREFIX {pub:...} is this still needed?


WDYT?

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Felix Röthenbacher                  [EMAIL PROTECTED]
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to