Hello all,

I was told (thanks Solprovider) that this is a lenya user list question:

I'm using lenya 1.2.4

We are re-writing the default export class: staticHTMLExport.java

The goal is to have an entire publication's pages statically exported with 
the push of one button.  In doing so we also need to get the document type 
of each document we are statically exporting (for a variety of reasons).

So from the within the java code, is there a way to get/construct the 
document type.  Creating a pub and then creating the document doesn't give 
us the document type.  It's simply not a property or method of a document:

http://lenya.apache.org/apidocs/1.2/org/apache/lenya/cms/publication/Document.html

Since all the URL's of the pub are fired from within the java class, we 
don't have a page envelope for any given document, and are currently 
trying to construct one, but need a cocoon Object Model in order to do so, 
as in:

http://lenya.apache.org/apidocs/1.2/org/apache/lenya/cms/publication/PageEnvelope.html

It seems like there should be a better way to do this rather than 
reconstruct the entire cocoon environment for each document we wish to 
export.

Cheers,

-doug 

Reply via email to