Hello Lenya devs,

since some hours I try to achieve the following:
In a Lenya 2.0 publication I'va a document with this url (example): 
/default/authoring/channel1/tutorial/DG3.html.
Now, any URL which starts with "/default/authoring/channel1/tutorial/DG3/" 
should call the document mentioned above with a parameter containing the rest 
of the calling url (whatever comes after .../DG3/).
This "URL-mapping" must not be a client-side redirect.

My thought was to handle this in the publication sitemap.xmap with this 
pipeline-fragment:
<map:pipelines>
  <map:pipeline>
    <map:match pattern="*/channel1/tutorial/DG3/**">
      <map:redirect-to uri="cocoon:/{1}/channel1/tutorial/DG3.html?x4u={2}"/>
    </map:match>
  </map:pipeline>
 :
 :

but I only get an error (extract from the stacktrace):
java.text.ParseException: Unparseable date: "" ....
Caused by: org.apache.cocoon.sitemap.PatternException: Cannot get variable '' 
in expression '{date-iso8601-rfc822:{page-envelope:document-lastmodified}}' 

When I'm calling the document itself 
(/default/authoring/channel1/tutorial/DG3.html) it displays correctly without 
any errors.

I also tried this in the main sitemap.xmap and in global-sitemap.xmap as well 
as with different forms of the urls... now I've no more ideas how I should do 
it...

Maybe is there a way to handle this by a doctype/module?


Any hint is much appreciated.
 Gerd


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

Reply via email to