cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Textor <jc.tex...@gmx.de>
Subject Re: Problem passing parameter values from sitemap into flowscript..
Date Sun, 25 Apr 2004 13:53:42 GMT
OK, thats clear enough to be understood by flow-newbies. Thank you :-)

> The docs are correct, but a little misleading. I have therefore 
> changed the page to say:
>
>        <map:flow language="javascript">
>           <map:script src="myApplication.js"/>
>        </map:flow>
>        <map:pipelines>
>           <map:pipeline>
>              <map:match pattern="index.html">
>                 <map:call function="showIndexPage">
>                   <map:parameter name="paramName" value="Value"/>
>                 </map:call>
>              </map:match>
>           </map:pipeline>
>        </map:pipelines>
>
> and:
>        function showIndexPage() {
>            var param = cocoon.parameters.paramName;
>            sendPage("private/index.html", {param: param});
>        }
>     This'll go onto the site next time someone updates it. Speak up if 
> anything above is incorrect.
>
> Regards, Upayavira


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


Mime
View raw message