Joern Nettingsmeier wrote:
hi andreas, hi everyone!
after the recent migration to uuids, my language switching buttons are
broken. i used to do this in my page2xhtml.xsl:
<a href="{$root}{$document-id}_en.html">english</a>, where the variables are
<!-- /lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url} -->
<map:match pattern="lenyabody-*/*/*/*/**">
...
<map:transform...>
<map:parameter name="root" value="{base-url:{2}:{3}}"/>
<map:parameter name="document-id"
value="{page-envelope:document-id}"/>
of course, this now produces links like
http://localhost:8888/soziologie/authoringba4ba940-2b8f-11db-8109-9e43e820a3df_en.html.
what is the new way to do it?
You get the path in the site structure (formerly known as document ID) with
{doc-info:{pubId}:{area}:{uuid}:{language}:path}
I understand that this syntax is quite verbose, but the implicit
page envelope syntax caused some problems - you have to be very
careful when writing pipelines which can be accessed for arbitrary
documents.
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]