You can make a path variable for each circuit.
request.path.cf_accounts="/app/accounts/";

then if you move the circuit, just change the path variable.

At 01:25 PM 4/26/01 -0400, you wrote:
>This has been bugging me too. I usually resort to just having
>a copy of the query in each circuit, and I know that can't
>possibly be the best solution.
>
>I've thought about using request.circuits to figure out where
>the query I want is. That would be nice and clean with a
>custom tag.
><cf_xfbInclude circuit="account" template="qry_accounts_search.cfm">
>
>Still, that doesn't make life any easier when I want to use
>the circuit in another application. (On the other hand, if I
>move it to another application the query probably wouldn't
>be valid and would have to be rewritten anyway. Hmmm...)
>
>Patrick
>
> > -----Original Message-----
> > From: Ken Beard [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 26, 2001 4:02 PM
> > To: Fusebox
> > Subject: another nesting problem
> >
> >
> > another barrier to plug-n-play circuits is reusable queries.. i include
> > queries from other circuits like <cfinclude
> > template="#request.path.cf_root#accounts/qry_accounts_search.cfm">
> > which would break if the accounts circuits were moved to
> > approot/maintenance/accounts/
> >
> > i guess a solution there is to put all your queries in a global
> > directory,
> > but A. that gets messy with large apps and B. then when you want to copy
> > that circuit to another application you've got to guess which queries in
> > the /queries/ directory belong to it.
> >
> >
> > -----------------------------------------------------
> > Ken Beard
> > Manager, Application Development
> > Stone Ground Solutions
> > 5100 West Kennedy Blvd, Suite 430
> > Tampa FL  33602
> > 813.387.1235 voice
> > 866.767.4051 toll free
> > 813.387.1237 fax
> > www.stoneground.com
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to