Ulf,

The easiest way I have found to completely replace
the layout for each circuit is to use some conditional
code such as the following in the fbx_layouts.cfm files:


<cfif fusebox.isTargetCircuit>
        <cfset fusebox.layoutdir="#fusebox.RootPath#/wrap/">
        <cfset fusebox.layoutfile="productLayout.cfm">
<cfelse>
        <cfset fusebox.layoutdir="">
        <cfset fusebox.layoutfile="">
</cfif>


So if the current circuit is the circuit being executed,
the core file will use the layout file you specify.  
Otherwise, no layout code will be output.  If all of your 
circuits' fbx_layouts.cfm files use this code, your layouts 
will not nest (i.e. layouts will behave like they did in
the earlier versions of Fusebox).

Regards,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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