El lun, 27-02-2006 a las 10:08 +0100, Andreas Hartmann escribió:
> 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.

Hmm, the problem I see on this and the related thread is that location
properties should really go into a higher level configuration file.

It cannot be that we need to change millions of different files in
different locations to make lenya work.

The nicest solution I see is to use the locationmap for this.

I will write now a proposal to implement it.

salu2
-- 
Thorsten Scherler
COO Spain
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