Yes I had doubling up problems. I have tried #1 in the past with mixed
results but will try #2 in the future. The problem is that I'm not allowed
to do projects in XFB or FB3 so I don't get much practice. I haven't really
touched what I did a few months ago.

I think the problem I had had more to do with what I was trying to do than
how I went about it. To make a long story short my I broke my app in to two
parts. The top was cfmoduled and controlled the bottom part. This required
that the top had to know which circuit called it. I got it to work but it
left a bad taste in my mouth. I think that if I went back to it now I might
see it in a new way. It certainly doesn't sound difficult for most
applications the way you describe it.



Chad Kemp

-----Original Message-----
From: Birgit Pauli-Haack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 4:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Moduling circuits


Hi,
I am rather late in the game and I do not always get the e-mails
from topica in a timely manner, so maybe this has been already said,
but not find its way into my e-mail box...

I do cfmoduling fusecation from other circuits all the time in both,
FB2 and FB3. For me it was one of the things
that hasn't changed a bit, from FB2 as in XFB and FB3, apart that I
have to use the dot.notation in the call.

 <CFMODULE template="#fusebox.rootPath#/index.cfm"
           fuseaction="user.ShowForm">


What most people throws at the beginning is probably that their layouts
double
up on them, which makes some pretty dorky looking pages.

And you have to deal with this in your fbx_layouts.cfm of the
circuits and the home circuit

I have seen probably a dozen ways to accomplish suppression of the
layout. Two of them seem to be wide spread:

1) is to use the built-in variable isCustomtag and to write this in
  fbx_layouts.cfm. Basically saying if this fuseaction is called as
  a customtag don't use the layoutfile. the fusebox.layout is passed
  through as is.

if (fusebox.isCustomTag EQ "no")
     {
     fusebox.layoutFile = "lay_circuitorhome.cfm";
     }else
        {fusebox.layoutFile = "";
}

2) Another way is to create a 'supressLayout' switch

in your fbx_settings.cfm
<cfparam name="supressLayout" default="false">

In your fbx_layout.cfm

if (supresslayout EQ FALSE)
     {
     fusebox.layoutFile = "lay_circuitorhome.cfm";
     }else
        {fusebox.layoutFile = "";
}

and the cfmodule call is:

 <CFMODULE template="#fusebox.rootPath#/index.cfm"
           fuseaction="fs.ShowForm"
           supresslayout = "yes">
The supressLayout is a little more flexible as you also can use it
for other stuff in your fbx_switch.cfm

<cfcase value="fuseaction">
        <cfset supresslayout = TRUE?
        cfinclude etc...

</cfcase>

I could have totally missed the point however. If that's the case,
please elaborate on the "cumbersomeness" in your posting.:-))

Cheerio,
-- 

Birgit
------------------------------

Thursday, April 18, 2002, 3:43:20 PM, you wrote:

Csc> I hope this question gets a lot of attention. I would think that this
should
Csc> be the hallmark of FB3 but it seems to me to be more cumbersome to
implement
Csc> then it should be. Most people on this list prefer to just drop the
circuit
Csc> into place, I guess only because it is much easier to do. 

Csc> Try something like this:
Csc> <CFMODULE template="#fusebox.rootPath#/index.cfm"
fuseaction="fs.ShowForm">


Csc> To be fair I stopped struggling with it at a time I was just learning
FB3 so
Csc> maybe I tried to make it do something it couldn't do or perhaps it
could
Csc> have been done in a better way.


Csc> Chad Kemp

Csc> -----Original Message-----
Csc> From: Drew Parker [mailto:[EMAIL PROTECTED]]
Csc> Sent: Thursday, April 18, 2002 1:43 PM
Csc> To: [EMAIL PROTECTED]
Csc> Subject: Moduling circuits


Csc> Hi Ppls,
Csc>    Can spmeone direct me to where I can read up on the 'How to do's' of

Csc> using Cfmodule to call certain circuits?
Csc> I have a circuit that performs a certain function and rather than 
Csc> copying the whole circuit into every directory where I need to use this

Csc> functionality, I thought a cfmodule call to the circuit would save me 
Csc> heaps of space.  Just how this is done and getting the circuit to 
Csc> function properly when called as a module, I have no idea.

Csc> Cheers in advance 
Csc> Drew

Csc> Any word back from the US Postal service Hal?  regarding the Conference

Csc> in a box?



Csc> *****************************************************************
Csc> This email and any files transmitted with it are confidential
Csc> and intended solely for the use of the individual or entity
Csc> to whom they are addressed. If you have received this email 
Csc> in error please notify [EMAIL PROTECTED]
Csc> *****************************************************************

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================


Reply via email to