Title: images directory

I've started my very first FB3 app by converting an existing FB2 app - yippee skippy! Anyway, I just know I'm missing something fundamental here. And I'm sure this issue has been covered to death. I apologize. I have a nested circuit below the main circuit. Fuses there reference the main image directory, queries directory, etc. In FB2 I set up mappings in app_globals and app_locals like so:

<!--- create the request.circuit variable --->

<cfif ListLast(cgi.script_name, "/") IS "index.cfm">

    <cfset request.circuit = Left(cgi.script_name, Len(cgi.script_name) - Len(ListLast(cgi.script_name, "/")))>

<cfelse>

    <cfset request.circuit = cgi.script_name>

</cfif>

<!--- create relative roots to application circuits --->

<cfset request.webroot = Left(request.circuit, Len(request.circuit) - 1 - Len(ListLast(request.circuit, "/")))>

<cfset request.imageroot = request.webroot & "images/">

<cfset request.queryroot = request.webroot & "queries/">

Then I would reference them in the fuses like so:

<img src=""#request.imageroot#dot_clear.gif"" width=1 height=1 border="0">

How is this accomplished in FB3? Is one of the Fusebox structure keys already set up for this? If so, I can't see it. Also, what about including fuses from other circuits or common queries directories?

<cfinclude template="#request.queryroot#qry_showyear.cfm">

This line of code should include the qry_showyear.cfm from the queries directory that is a direct sibling of the current circuit directory. Any help would be appreciated. Thanks.

--Jeffrey

 ****************************************************************************  This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law.  If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message.  If you have received this message in error, please immediately advise the sender by reply email and delete the message.  Thank you very much.                                                                       ****************************************************************************

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