Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 820D1DEBE for ; Fri, 5 Oct 2012 11:38:33 +0000 (UTC) Received: (qmail 83815 invoked by uid 500); 5 Oct 2012 11:38:33 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 83726 invoked by uid 500); 5 Oct 2012 11:38:32 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 83700 invoked by uid 99); 5 Oct 2012 11:38:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 11:38:32 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [57.67.164.69] (HELO be1ssnxpe1.nxp.com) (57.67.164.69) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 11:38:23 +0000 Received: from EU1RDCRDC1VW025.exi.nxp.com ([134.27.176.170]) by be1ssnxpe1.nxp.com (8.14.4/8.14.4) with ESMTP id q95Bc11i007192 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Fri, 5 Oct 2012 13:38:01 +0200 Received: from eu1rdcrdc1wx032.exi.nxp.com ([134.27.179.186]) by EU1RDCRDC1VW025.exi.nxp.com ([134.27.176.170]) with mapi; Fri, 5 Oct 2012 13:38:01 +0200 From: Robby Pelssers To: "users@cocoon.apache.org" Date: Fri, 5 Oct 2012 13:37:59 +0200 Subject: RE: two scripts to handle flowscript in one sitemap Thread-Topic: two scripts to handle flowscript in one sitemap Thread-Index: Ac2i7SnGAuejnKUhR9+XxfIXWlYzdgAAAwnA Message-ID: <927C66C0775CCA43B88EB1E3006614B31E29EBAA@eu1rdcrdc1wx032.exi.nxp.com> References: <506EC541.2070806@gmail.com> In-Reply-To: <506EC541.2070806@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Not sure what you mean.. For all I know you can just store all your flowscripts in the flow folder a= nd cocoon will load all of them on startup. So all functions should be ava= ilable from your sitemap.. even when split into multiple files. So let's say you have=20 File1: ----------- Function func1() {} File2: ---------- Function func2() {} File3: -------- Function func3() { //you should be able to call func1 and func2 because they will be avail= able=20 Var res1 =3D func1() Var res2 =3D func2() Cocoon.sendPage("somePipeline", {x: res1, y: res2}) } In your sitemap: -----Original Message----- From: Paul Joseph [mailto:pjoseph@gmail.com]=20 Sent: Friday, October 05, 2012 1:32 PM To: users@cocoon.apache.org 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: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org