Thanks Robby, good to know, will make use of this ability.
Paul
On 10/5/2012 7:37 AM, Robby Pelssers wrote:
Not sure what you mean..
For all I know you can just store all your flowscripts in the flow folder and
cocoon will load all of them on startup. So all functions should be available
from your sitemap.. even when split into multiple files.
So let's say you have
File1:
-----------
Function func1() {}
File2:
----------
Function func2() {}
File3:
--------
Function func3() {
//you should be able to call func1 and func2 because they will be available
Var res1 = func1()
Var res2 = func2()
Cocoon.sendPage("somePipeline", {x: res1, y: res2})
}
In your sitemap:
<map:call function="func3"/>
-----Original Message-----
From: Paul Joseph [mailto:[email protected]]
Sent: Friday, October 05, 2012 1:32 PM
To: [email protected]
Subject: two scripts to handle flowscript in one sitemap
Hi there,
I have a flowscript that has a lot of functiofnality (functions).
It is possible for one sitemap to handle more than one flowscript? That way I
can split this file out into smaller units associated with the submenus.
(Cocoon 2.1.11, Apache Tomcat 7, Windows 2008)
brgds
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]