You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Lars Geldner <ge...@gmx.net> on 2008/06/12 09:40:23 UTC
share pages between pubs
Dear Lenya guys,
is it possible to share (XHTML-) pages between multiple publications? The aim is to edit a certain page only in one publication. If the page was edited the changes should also affect the other publication.
Lenya 2.0.
Thanks in advance!
Lars
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: share pages between pubs
Posted by Andreas Hartmann <an...@apache.org>.
Hi Lars,
Lars Geldner schrieb:
> is it possible to share (XHTML-) pages between multiple publications?
> The aim is to edit a certain page only in one publication. If the
> page was edited the changes should also affect the other publication.
the usual way to share content in Lenya is via Cocoon includes:
1. If necessary, declare and implement a resource type format which
renders a version of the content that is suitable for inclusion in other
documents [1].
2. Add an element to the schema which allows to insert inclusion
statements. Either use <i:include> [2] directly, or invent your own and
transform it to <i:include>. Be careful to add the pub parameter to the
lenya-document URLs [3] if you reference documents from a different
publication. Lenya can't resolve publications for UUIDs (yet).
3. Add a <map:transform type="include"/> step to your pipelines (if it
doesn't already exist).
[1]
https://lenya.zones.apache.org/cms/docu/live/docu20/reference/resource-types.html#N10125
[2]
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/transformation/IncludeTransformer.html
[3]
https://lenya.zones.apache.org/cms/docu/live/docu20/reference/urls-and-links/link-management.html
HTH,
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org