cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Edwards <>
Subject Obtaining sitemap globals in flow
Date Thu, 16 Jun 2005 01:19:17 GMT
Hi folks,
Is there a simple way of obtaining a variable set up in the sitemap 
<global-variables> section?
At the moment I'm passing the value through every time a flow function 
is called which can't be good:
        <map:match pattern="*.do">
            <map:call function="main">
                <map:parameter name="page" value="{1}" />
                 <map:parameter name="webdav-source" 

and referencing this in my flow thusly:

    print("Global thing: " + cocoon.parameters["webdav-source"]);

Is there a "cocoon.sitemap.globals("webdav-source")" type method lurking 



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message