Why not just set a request.ImageDir in the app_locals.cfm of
each circuit? That way, each included file takes its
imagesDir from the app_locals of the calling index.cfm, like
so:

====app_locals.cfm for fooDir===
<cfset request.imagesDir="../images">

====app_locals.cfm for fooDir/gooDir===
<cfset request.imagesDir="../../images">

I do it and it works OK. I would prefer to have a mapping,
but the host is slow in doing that...I do, however, view it
as a temporary, imperfect, yet adaptable solution.

-Mike G

----- Original Message -----
From: "Steve Nelson" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Thursday, December 14, 2000 10:37 AM
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