You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2006/11/13 19:46:56 UTC
[1.4] Centralized handling of "view revision"
Hi Lenya devs,
up to now, it was necessary to add a "view revision" pipeline
to each resource type sitemap. The lenya-document URI syntax
makes it simple to get rid of this code duplication.
Since the lenya-document URI requires a parameter of the form
lenya-document:<uuid>,rev=...
it would be necessary to add a selector to the sitemap. To avoid
this, you can use the LinkingModule which checks for the
lenya.revision request parameter and creates the key-value pair
accordingly:
lenya-document:<uuid>{link:rev}
Now you can remove the "view revision" pipeline from your resource
type sitemaps and use the following source URI for the generator in
your main resource type pipeline:
<map:generate
src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}{link:rev}"/>
If you don't like the syntax, please reply to this thread.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org