I've begun using the following in my app_locals file for sub-fuseboxes:
<!--- Include global variables/settings --->
<cfinclude template="#request.cfroot#/app_globals.cfm">
<!--- Default fuseaction for this circuit application --->
<cfparam name="attributes.fuseaction" default="ShowMain">
<!--- If a user somehow hacks into a lower level fusebox, then the
request.CallerFuseaction is not defined. The user should be redirected to
the main fusebox index.cfm --->
<cfif NOT ISDEFINED ("request.CallerFuseAction")>
<cflocation url="#request.cfroot#/index.cfm" addtoken="No">
</cfif>
<!--- Application Constants --->
<cfset request.CallerFuseAction = request.CallerFuseAction &"ORA.">
<cfset request.approot = request.cfroot & "/oracle_maintenance">
<!--- Default title text (in HTML <title> tag). It can be changed in URL
variable "titleText"
on inside <cfcase> sentences in index.cfm (i.e. in display handler
files) and it will
be included in header file. --->
<cfset attributes.titleText="Oracle User Maintenance">
The index.cfm for the subfusebox then uses:
<CFINCLUDE TEMPLATE="app_locals.cfm">
<CFSWITCH EXPRESSION="#GetToken(attributes.fuseaction,1,'.')#">
<cfcase value="ShowMain">
<cfoutput><p>Welcome to the main Oracle application. <p></cfoutput>
</cfcase>
<!--- USER UPDATE FUSEACTIONS BEGIN --->
<cfcase value="userPreferences">
<cfset rfa.userPreferencesUpdate= #request.CallerFuseAction#
&"userUpdate">
<cfinclude
template="#request.approot#/dsp_user_profile_edit.cfm">
</cfcase>
Please note the use of #request.approot# rather than #request.approot#.
Sub-fusebox applications can then be easily be copied into current
applications as a subdirectory. Has made life very very easy.
Anybody else come up with an easy deployment procedure for sub fuse box
structures into any fusebox hierachy?
Adam Reynolds
ColdFusion Consultant
H.J. Heinz
Tel.: +44 (0) 20 8756 5170
Mob.: +44 (0) 7973 386620
**********************************************************************
This email and any attachments are confidential and solely
for the use of the intended recipient. They may contain
material protected by legal professional or other privilege.
If you are not the intended recipient or the person responsible
for delivering to the intended recipient, you are not authorised
to and must not disclose, copy, distribute or retain this email
or its attachments. Although this email and its attachments
are believed to be free of any virus or other defect, it is the
responsibility of the recipient to ensure that they are virus free
and no responsibility is accepted by the company for any
loss or damage arising from receipt or use thereof.
**********************************************************************
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.