Michael Wechner wrote:
Andreas Hartmann wrote:

[...]

<node-factories>

  <component-instance name="source" class="...">
    <content-directory src="..."/>
  </component-instance>

</node-factories>


the problem I see here is that it is publication specific ...

OK, I see.

The SourceNodeFactory could maintain a different directory for each
publication. The configuration could be added using an XPatch file
provided by the publication:

<xconf xpath="/cocoon/node-factories/component-instance
  [EMAIL PROTECTED] = '...SourceNodeFactory']">

  <content-dir publication="..." src="..."/>

</xconf>


The problem is that this isn't compatible with publication templating.
Maybe we could add a wildcard for the publication ID?

  <content-dir publication="..." src="/content/@PUBLICATION@/"/>

This would implicate that all instances store their content
using this declaration.

-- 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]

Reply via email to