> Doug wrote: > > Am at a loss as to how-to-use/what-is the IsHomeCircuit variable. In > most examples of fbx_settings.cfm files are the following statements: > > <cfif fusebox.IsHomeCircuit> > <!--- put settings here that you want to execute only > when this is the > application's home circuit (for example "<cfapplication>" )---> > > <cfelse> > <!--- put settings here that you want to execute only > when this is not > an application's home circuit ---> > > </cfif> > > If I put the <cfapplication> tag where stated, how would the circuit > work if it is a nested circuit and not the home circuit? You would probably have that code in all of your fbx_settings files. So by the time you get to the nested circuit the <cfapplication> tag should have already been handled by the home circuit.
> Does anyone know of a good explanation of home circuit and how > it relates to IsHomeCircuit variable? The home circuit is the circuit you point to in your web browser. It's usually the top-level circuit in your hierarchy, but it depends how you call it. If you call a nested circuit directly, it becomes the home circuit. /parent/index.cfm?fuseaction=parent.hello <-- parent is home circuit /parent/index.cfm?fuseaction=child.hello <-- parent is home circuit /parent/child/index.cfm?fuseaction=child.hello <-- child is home circuit The fusebox.isHomeCircuit variable just tells me whether whatever circuit I'm in is the home circuit. > Most of my applications/circuits have thier own cfapplication tags. > Nesting these applications into a Fusebox web site seems like > a natural, but so far there has been little value to these > statements in the fbx_settings.cfm file. I do use them in the > fbx_layout.cfm files to allow users to access the circuits either > directly or nested with in web site. In the fbx_layout.cfm file I > can change the layout depending on how the user enters the circuit. It sounds like you understand it, then. How you use isHomeCircuit depends on your needs. Patrick ==^================================================================ 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 ==^================================================================
