That's one of the drawbacks of cfmodule, if you close one you have to close
all of them in the same page.

I'd suggest taking the closed cfmodule call and separate that into a
different file.

So if you have

<cfmodule template="whatever.cfm">
  <cfmodule template="somethingelse.cfm">
</cfmodule>

Change it to be:

<cfmodule template="whatever.cfm">
  <cfinclude template="cfmodulecontent.cfm">
</cfmodule>

<!--- cfmodulecontent.cfm --->
<cfmoculde template="somethingelse.cfm">

that way you are moving the second non-closed cfmodule call to a separate
page.

Also, you can add a / to the inner cfmodule call but that will still call
the inner template twice, sequentially.  If the tag doesn't check for
executionMode then it will run twice, incorrectly.

<cfmodule template="somethingelse.cfm" />

HTH,

Sam

-----------------------------------------------
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
-----------------------------------------------


> -----Original Message-----
> From: Dwayne Cole [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 26, 2003 5:39 PM
> To: CF-Talk
> Subject: soEditor as cfmodule
>
> I would like to call the soEditor as a cfmodule instead of a
> custom tag.  The editing window is displaying twice.  I
> presume that it's because there is another cfmodule call on
> the page that happens to have a closing </cfmodule> tag. The
> structure looks like this:
>
> <cfmodule template ="......">
>
>   <cfmodule template=".../soEditor.cfm">
>
> </cfmodule>
>
> How can I keep the inner cfmodule from getting confused with
> the outer call?
>
> Dwayne Cole, MS in MIS, MBA

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to