Yep, makes sense. Thanks.

-----Original Message-----
From: John Quarto-vonTivadar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:58 PM
To: [EMAIL PROTECTED]
Subject: Re: circuit or thiscircuit?


no problem:

fusebox.circuit  is the circuit parsed from the complete fuseaction on the
URL -- when you say
"index.cfm?fuseaction=books.ListBooks", the circuit is "books"

fusebox.targetcircuit is the circuit name of the circuit identified by
fusebox.circuit above. In 99.9% of the cases, the two will ahve the same
value . There would only be a discrepancy when the circuit in question is
not defined in the fbx_circuits file.  SO in this example
fusebox.targetcircuit = "books"

fusebox.thiscircuit  is a different beast entirely.  It takes the circuit
alias of each directory that the core file passes through as it does its
job. The value is first set to the circuit alias of the "root" circuit and
then changes as each fbx_settings file is loaded, and then changes again
when the fbx_Switch in the target circuit is loaded and then reverses its
cource and changes again as fbx_layouts are handled in each circuit from the
target circuit back up to the root circuit.
example: (take a deep breath)
If the "Books" circuit were beneath the "Products" circuit which was beneath
the "Home" circuit, then fusebox.thiscircuit would have the value of "Home"
when the top level fbx_settings file was loaded, "Products" when the
fbx_settings file in that directory was loaded, "Books" when the
fbx_settings file in that directory was loaded, "Books" while the fbx_Switch
and the fuseaction in the target directory was handled, then "Books" while
the fbx_layouts in the target circuit was handled, "Products" while the
fbx_layouts in that directory was handled, and "Home" when the fbx_layouts
in that directroy was handled.

(It mirrors what fusebox.circuitpath does)

Basically fusebox.circuit and fusebox.targetcircuit can be thought of almost
as constants for a given page request under FB3standard, whereas
fusebox.thiscircuit is a always-changing variable

did that help?

----- Original Message -----
From: "Richard Lamb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 30, 2002 4:43 PM
Subject: circuit or thiscircuit?


> Hi,
>
> I'm confused about the differences between fusebox.circuit and
> fusebox.thiscircuit. Could somebody clarify?
>
> Thanks,
>
> Rick
>
>

==^================================================================
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