Joose Vettenranta wrote:
Hi,
is it possible to load global variables from file?
Why? because this is how I could create config-file which could be edited through some sort of interface and not to have to touch sitemap-file.
It could be created so that when sending some signal to some object, it would read that file again and read parameters from that file. (so not checking that file everytime request comes).
skin-example is good:
config.xml would be like this:
<globals> <skin>myskin</skin> </globals>
then i could create web-page with what I could alter that skin-variable. Then push submit and it would change skin to something else!
I don't know wether it is what you want, but you can use the PropertiesFileModule or the XMLFileModule to access config datas coming from a (local) file:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/PropertiesFileModule.html http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/XMLFileModule.html
Regards Stephan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
