cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
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}" />
   </map:call>

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;
	...
   }

Cheers,
Geert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message