cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <>
Subject Re: Passing a parameter to flow from sitemap
Date Wed, 18 Jan 2006 13:54:16 GMT
First of all you have to make sure there is a session object. You can create one with cocoon.session

or with session actions I believe.

To pass dynamic parameters to flowscript, add the map:parameter to the map:call statements:

   <map:call function="myfunc">
     <map:parameter name="myvar" value="{session-attr:myattr}" />

And not to the map:script command!

In flowscript you will need the following:

   function myfunc {
	var myvar = cocoon.parameters["myvar"];
         // or
	var myvar = cocoon.parameter.myvar;


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

View raw message