I find it helpful to have two different image directory "types". One is the
one local to the circuit app; the other is the one global to the
application. I use "images" (defining it in myGlobals) for the local and
request.images for the global. For me, at least, that works well.

Hal Helms
== See www.ColdFusionTraining.com for info on "Best Practices with
ColdFusion & Fusebox" training, Jan 22-25 ==


-----Original Message-----
From: Steve Nelson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 1:38 PM
To: Fusebox
Subject: Re: the dot notation


I have an idea....

how about continue to use request.imagesroot or whatever.  Have a
default value in your application.cfm, then in your root index.cfm
change the value in eash of the cfcases.

cfswitch listfirst(attribs.fuseaction)
         cfcase value "cat"
                 cfset request.imagesroot="/cat"
                 cfset attribs.fa=listlast(attribs.fa)
                 cfinclude cat/index.cfm
         /cfcase

         cfcase value "reg"
                 cfset request.imagesroot="/reg"
                 cfset attrbs.fa=listlast(attribs.fa)
                 cfinclude reg/index.cfm
         /cfcase

         cfcase value "MainPage"
                 cfset request.imagesroot="/images"
                 cfinclude qry_GetStuff
                 cfinclude dsp_DispMainPage
         /cfcase

         cfcase value "logout"
                 cfset request.imagesroot="/images"
                 cfinclude act_killsession
                 cfinclude dsp_goodbye
         /cfcase
 /cfswitch

Steve Nelson
http://www.SecretAgents.com
Tools for Fusebox Developers
(804) 825-9063
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        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