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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to