Markus Angst wrote:
Hi,

We want to use some sort of global configuration parameters for our Lenya publication. Right now we are only using them in sitemaps (for passing them to XSLTs). They are not used in custom Java code yet but this is likely to happen some day.

My first attempt was to use lenya.properties.xml. Since this works only globally and on a module level, I have to create a module to smuggle the file into our publication. It works, but it feels like using a big tool for a small task and I would need a new module for every publication that needs its own lenya.properties.xml. I think it would be a nice feature to have a lenya.properties.xml on a publication level (just drop it into $PUB_HOME).

+1. neat idea. thorsten, iirc you came up with that feature in the first place, right? how difficult could this be?

As a second attempt (and to avoid an extra module) I am also thinking about using global sitemap variables (<global-variables>), which are, as I understand it, a (almost undocumented) cocoon feature.

i don't think that's a good idea. sitemaps are about control and data flow. i wouldn't put data itself in there.

In global-sitemap.xmap there is a comment: "These values are inherited into sub-sitemaps and can be extended there." This is exactly what I want but I have an understanding problem. The following are all questions disguised as statements, so stop me when i'm going wrong:

- inheritance goes only in the direction away from the root of the sitemap tree

- from this it follows that global sitemap variables have to be placed in
  the root of the sitemap tree to be visible in all branches

- the root of the sitemap tree in Lenya is always global-sitemap.xmap
  (although the filename does not appear in
  http://lenya.apache.org/docs/1_4/reference/lenya-sitemaps.html)

- global-sitemap.xmap is not fallback enabled (that's ok because I wouldn't
  like to override it anyway)

you should not :)
fallback-overriding that one is roughly equivalent to using another CMS altogether :)



--
jörn nettingsmeier

home://germany/45128 essen/lortzingstr. 11/
http://spunk.dnsalias.org
phone://+49/201/491621

Kurt is up in Heaven now.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to