oops, typo

please supplant
<cfif fusebox.thisCircuit EQ 'home'>
with
<cfif fusebox.thisCircuit EQ fusebox.homecircuit>

----- Original Message -----
From: "John Quarto-vonTivadar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 11:55 AM
Subject: Re: circuits layout confusion


> Patrick is absolutely correct. I'd like to suggest a stylistic change
> though:
>
> rather than:
> <cfif fusebox.isTargetCircuit>
> I'd suggest:
> <cfif fusebox.thisCircuit EQ fusebox.targetcircuit>
>
> I might even be talked into naming it outright, a la:
> <cfif fusebox.thisCircuit EQ 'home'>     (or whatever you call your root
> circuit)
>
> Why? Well what if you decide you want one of your circuits, say, the "odd"
> circuit, to have one column layout. This gives you a clearer way to
> specifying it:
>
> <cfif fusebox.thisCircuit EQ 'home'>
>    <cfset fusebox.layoutFile="lay_threeColumn.cfm">
> <cfelseif fusebox.thisCircuit EQ "odd">
>    <cfset fusebox.layoutFile="lay_oneColumn.cfm">
>  <cfelse>
>    <cfset fusebox.layoutFile="lay_twoColumn.cfm">
>  </cfif>
>
> HOWEVER:
> obviously if you add any more conditionals at this point, you'd do better
to
> put the layout determination in the sub-circuits themselves, for example
>
> in each sub-circuits fbx_settings you could use a local variable:
> <cfset overall_layout = "lay_threeColumn.cfm">
> (or "two column" or "one column" or "elephant column" -- you get the
point.)
>
> thereby setting the value of the variable *in the circuit to which it will
> be applied* to be used later by the home circuit.  Then in the home
> circuit's fbx_layouts.cfm you would have
>
> <--- if it's not defined previously from a sub-circuit then use this
> one --->
> <cfparam name="overall_layout" default="lay_threeColumn.cfm">
> <cfset fusebox.layoutFile = thislayout>
>
> now you've removed all the fragile conditional logic
>
> My general rule of thumb is that the moment I get to three states in a
> conditional then I start looking fro ways to remove the conditional test
> altogether. Once in a while I'll bend it a bit, like the CFELSEIF above,
but
> even then it's for *my* convenience that I'm bending it at that moment --
> kinda like "well I know I shouldn't have dessert, but ok this one time
PASS
> THE CHEESECAKE!"  If you do that once in a while you aren't gonna hurt
> yourself; if you make exceptions all that time, then you're in trouble.
>
>
> ----- Original Message -----
> From: "Patrick McElhaney" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 03, 2002 11:27 AM
> Subject: RE: circuits layout confusion
>
>
> > In your fbx_layouts in the home circuit:
> >
> > <cfif fusebox.isTargetCircuit>
> >   <cfset fusebox.layoutFile="lay_threeColumn.cfm">
> > <cfelse>
> >   <cfset fusebox.layoutFile="lay_twoColumn.cfm">
> > </cfif>
> >
> > Patrick
> >
> >
> > > -----Original Message-----
> > > From: Graham Faulkner [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, June 03, 2002 11:08 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: circuits layout confusion
> > >
> > >
> > > Hi there,
> > >
> > > A newbie question re: using fbx_layouts.cfm in circuits on this Monday
> > > morning...
> > >
> > > I have a site in which I would like to use a three-column
> > > layout (menu,
> > > content, and then some contact info in the third) on the home
> > > page, but then
> > > a two-column layout (menu, content) on the subsequent pages
> > > (circuits).
> > >
> > > I created a two-column layout file, placed it within the circuit
> > > sub-directory and listed it with fbx_Layouts.cfm for that
> > > circuit.  However,
> > > what happens is that this entire layout file is placed within
> > > the home page
> > > layout file when I call that circuit.  What do I need to do
> > > to REPLACE the
> > > home page layout file with the circuit layout file when that
> > > circuit is
> > > called?  I know it must be a simple thing I'm missing.
> > >
> > > Thanks in advance for any help you can provide.
> > >
> > > Blessings,
> > >
> > > Graham
> > >
> > > ------------------------------------------------------------
> > > Graham Faulkner, BBA
> > > President
> > > Global Audience Communications
> > >
> > > Web design with YOUR world in mind!
> > >
> > > Web: http://www.GlobalAudienceCommunications.com
> > > Email: [EMAIL PROTECTED]
> > >
> > > Tel./Fax: 519-880-9184
> > > Cell: 519-496-0887
> > >
> > >
> >
> >
>
>

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