The mailing lists are usually dead on the weekends, but this should
get you started.

On 8/19/05, Mark Lundquist <[EMAIL PROTECTED]> wrote:
> 1) Editors
After reading the documentation, I felt like you did, so I forced the
content managers to use Mozilla with Kupu.  I patched Kupu enough that
I did not want to support BXE too.

During testing, I accidentally edited a document with Kupu on MSIE,
and the links were completed during save: "this.html" became
"http://theEditingServer/pub/authoring/this.html";, which would break
the link for production site which needs
"http://theLiveServer/pub/live/this.html";

> 2) How close is 1.4 to being ready for prime time?

Ask the devs.  Based on the mailing lists, it needs some QA to be
called an alpha version, but they could probably clean it in a week if
they froze the functionality.  They are still discussing which
repository should be the default.

> 3) Starting from scratch, importing content
> http://wiki.apache.org/lenya/OverviewGettingStarted has a section
> "Starting from scratch" for "1.4-dev".  Can I also "start from scratch"
> with 1.2.3?

Those instructions should work.  I have no idea what the fourth line
does; Lenya 1.2.2 notices publications dynamically when you access
them from a browser.

> Or is there a way to build Lenya with an empty
> "default" publication, i.e. without the default content?

That is what I did (with 1.2.2).  Edit sitetree.xml to contain just
the homepage, and copy it to content/live and content/authoring. 
Delete all the directories below them except /content/*/index (for the
homepage.)

> http://wiki.apache.org/cocoon-lenya/HowToContentImport seems like it's
> glossing over a little... for instance, looking in the sample default/
> publication, it looks like there is something special about
> content/index/.  Please explain! :-)

The default pub process sets the doctype for /index* to "homepage", so
it uses homepage2xhtml.xsl and page2xhtml-homepage.xsl.  You can
disable that in parameter-doctype.xmap.  The content is placed in a
directory like everything else:
content/live/index/index_en.html

(OT: You cannot add your own parameters.  "parameter-doctype.xmap" is
hardcoded.)

> I wasn't sure about the local etiquette on the Lenya wiki, so instead of
>   asking my questions by making edits there, I thought I'd ask here
> first.   I'll be glad to help improve the Wiki once I know a little
> bit... :-)

I have not tried any wikis yet.  We used collaborative documentation
about a decade ago for user support, and there were problems that
scared me from participating.  I have my own website for Lenya
documentation.  It seems popular.  Several typos have been caught by
other people, but I am the only editor.  Several pages have been
copied to the official docs.  Someone else will need to answer about
Wiki etiquette.  Isn't there a FAQ?

> 4) Losing the ".html"
> I'm seriously not a fan of ".html" bunged onto the end of page URLs.
> I've just never done it that way, and I don't care for it.  How
> hard-wired into Lenya is this convention?  If I don't want it, is it
> really just as easy as tweaking the sitemap?

Yes, the default pub uses: 
      <map:match pattern="**.html">
Yes, it would be easy to remove.  

The lookup for the document in the default pub's
publication-sitemap.xmap is handled with:
     <map:part 
src="cocoon:/lenya-document-{1}/{3}/{4}/{page-envelope:document-path}"/>

page-envelope:document-path is the true path and filename, but it
discards the extension:
   http://solprovider.com/lenya/live/basics/variables.html
   http://solprovider.com/lenya/live/basics/variables.xxx
   http://solprovider.com/lenya/live/basics/variables
all return:
   basics/variables/index_en.xml 

Every match should be unique, so do not use the double-star "**" with
other matches in the XMAP:
     <map:match pattern="mypath/**">
        <!-- This may never be processed. -->
     </map:match>
     <map:match pattern="**">
     </map:match>
You can do nested matches. Either have some paths do something
special, or match based on "lenya.step" in the querystring:
     <map:match pattern="**">
        <map:match pattern="mypath/**">
        </map:match>
        <map:match type="step" pattern="differentprocess">
        </map:match>
        <!-- default process here -->
     </map:match>

I believe this is a Cocoon issue.  I noticed it when Flow in a Usecase
went into an infinite loop.  The named return pipeline was never seen
because "**" caught everything, even though that match was the last.

Enjoy,
solprovider

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

Reply via email to