cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: more about properties in cocoon 2.2
Date Sun, 20 Aug 2006 18:48:39 GMT
Carsten Ziegeler wrote:
> Leszek Gawron wrote:
>>> Yes, I like your idea. Just one simple "include-config" and that's it.
>>> And the use-default-dirs can then be used to turn off including from the
>>> default location which is on by default (If the directories do not
>>> exists this is not concidered an error).
>>> If you want I can implement this (I would not disable the possibility to
>>> do a include and include-beans in the sitemap though).
>> Would be even better if you described in few words how to do it. Then I 
>> would do it myself and learn a lot.
>>
> Sure. The whole code is in the SitemapLanguage class. Now, there is the
> evaluation of the property-dir attribute and the like. You just have to
> get all "include-config" children of the Configuration object and pass
> that into the method creating the settings objects. There you read all
> the property files.

Looks it's not that easy: if a file included with map:include also 
contains map:include-config? We have to either ignore it/throw or 
traverse whole configuration twice.

-- 
Leszek Gawron, IT Manager                          MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message