Hi Jeremy,
 
The values of isTargetCircuit and isHomeCircuit change throughout the life of a single request.
 
Where are you outputting this dump?  It looks like you are running the dump code in the home circuit.  If that's the case, then everythign looks exactly as you would expect.  Try putting the dump code in the info circuit and you will see a difference.
 
RootPath is NULL because the path from the home circuit, where you are calling the dump, back to the home circuit IS null.
 
Etc.
 
Am I close to the mark?
LeeBB

 

----- Original Message -----

 
Im trying to change the layout of my app based on certain, defined fusebox
variables, such as isHomeCircuit. However, ishomecircuit is always true, no
matter where I am.

Im including a cfdump below of the fusebox structure for when I am on the
home circuit and when I am not...

When on the home page of the site (fuseaction = home.main), a dump of the
fusebox structure shows this:

circuit = "home"
circuits = "course|_fbsa/course ; info|_fbsa/info ; home|_fbsa"
currentpath = ""
fuseaction = "main"
homecircuit = "HOME"
iscustomtag = "false"
ishomecircuit = "true"
istargetcircuit = "true"
layout = fusebox.layout
layoutdir = ""
layoutfile = "out_layout.cfm"
rootpath = ""
suppresserrors = "false"
targetcircuit = "home"
thiscircuit = "HOME"
thislayoutpath = ""

When I am on a circuit of the site (ex: fuseaction = info.hotel), the dump
looks like this:

circuit = "info"
circuits = "course|_fbsa/course ; info|_fbsa/info ; home|_fbsa"
currentpath = ""
fuseaction = "hotel"
homecircuit = "HOME"
iscustomtag = "false"
ishomecircuit = "true"
istargetcircuit = "false"
layout = fusebox.layout
layoutdir = ""
layoutfile = "out_layout.cfm"
rootpath = ""
suppresserrors = "false"
targetcircuit = "info"
thiscircuit = "HOME"
thislayoutpath = ""

The questions are:
Why is ishomecircuit always TRUE?
Why is istargetcircuit FALSE on the second example?
Why is thiscircuit HOME when circuit is INFO?
Why is currentpath always NULL?
What is rootpath always NULL?

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