You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by up...@apache.org on 2004/04/25 15:45:19 UTC
cvs commit: cocoon-2.1/src/documentation/xdocs/userdocs/flow sitemap.xml
upayavira 2004/04/25 06:45:19
Modified: src/documentation/xdocs/userdocs/flow sitemap.xml
Log:
Clarifying example (use of parameters) which can be misleading (see http://marc.theaimsgroup.com/?t=108289469500001&r=1&w=2)
Revision Changes Path
1.21 +4 -2 cocoon-2.1/src/documentation/xdocs/userdocs/flow/sitemap.xml
Index: sitemap.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/documentation/xdocs/userdocs/flow/sitemap.xml,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- sitemap.xml 6 Mar 2004 02:25:54 -0000 1.20
+++ sitemap.xml 25 Apr 2004 13:45:19 -0000 1.21
@@ -60,7 +60,9 @@
<map:pipelines>
<map:pipeline>
<map:match pattern="index.html">
- <map:call function="showIndexPage"/>
+ <map:call function="showIndexPage">
+ <map:parameter name="paramName" value="Value"/>
+ </map:call>
</map:match>
</map:pipeline>
</map:pipelines>
@@ -68,7 +70,7 @@
<p>Then in <code>myApplication.js</code> you would define a JavaScript function called <code>showIndexPage()</code> such as:</p>
<source><![CDATA[
function showIndexPage() {
- var param = cocoon.request.get("paramName");
+ var param = cocoon.parameters.paramName;
sendPage("private/index.html", {param: param});
}
]]></source>