Bhavya - Thank you for the compliment.

I am now responsible for the external website of a Fortune 500
company, and have been busy learning how it works, and all the current
and in-development applications for it.  I still want to finish Lenya
1.3.  When the new job started, I was working on adding an XHTML
editor for flat content so the new storage structure is usable.  (You
can use 1.3's Module system with 1.2's storage structure, but that
greatly reduces the improvements.)  Once an editor is committed, I can
start improving the functionality as documented in the TODO file.  My
weekdays are consumed by my job, and the weekends seem to disappear,
so it may be a while.

---
Jay,
As others have suggested, there are several methods such as changing
the extension if you want a "printable version" with just the content.
Assuming you want exactly what you said...

You want everything to work as normal in Lenya, except you want the
live pages to show only the content without any navigation.  This
upsets the other devs because the dynamic navigation system is really
good and they do not understand why anybody would not want to use it.
I assume you have many websites with very few pages, and do not want
to create a Publication for each (the Lenya way), or have them
automatically link to each other (as the Lenya navigation does.)

To make the change:
FILE: publication-sitemap.xml
Immediately after this line:
      <map:match pattern="lenyabody-*/*/*/*/**">

Add this:
     <map:match pattern="lenyabody-*/*/live/*/**">
       <map:aggregate element="cmsbody">
         <map:part
src="cocoon:/lenya-document-{1}/live/{3}/{page-envelope:document-path}"/>
       </map:aggregate>
       <map:transform src="xslt/page2xhtml-{3}.xsl">
         <map:parameter name="root"
value="{page-envelope:context-prefix}/{2}/live"/>
         <map:parameter name="url" value="{4}"/>
         <map:parameter name="document-id"
value="{page-envelope:document-id}"/>
         <map:parameter name="document-type"
value="{page-envelope:document-type}"/>
       </map:transform>
       <map:transform type="i18n" label="debug">
          <map:parameter name="locale"
value="{page-envelope:document-language}"/>
       </map:transform>
       <map:select type="parameter">
         <map:parameter name="parameter-selector-test" value="{1}"/>
         <map:when test="view">
              <map:transform type="link-rewrite"/>
         </map:when>
       </map:select>
       <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>

The code is exactly the rest of the match,
- wrapped with another match for only the "live" area,
- without the navigation elements,
- "{3}" replaced by "live", and
- the numbered variables above 3 reduced by one.
That produces the HTML without the navigation contents only for the "live" Area.

In the above code, you may also want to change:
       <map:transform src="xslt/page2xhtml-{3}.xsl">
To something like:
       <map:transform src="xslt/page2xhtmlNoNav-{3}.xsl">
And create the appropriate XSLT files by copying the existing
"xsl/page2xhtml-*.xsl" files and renaming them to
"xsl/page2xhtmlNoNav-*.xsl".  Then you can adjust the new files so
they do not add the navigation elements or anything else undesirable.
But then the HTML will not exactly match what appears while authoring.

solprovider

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

Reply via email to