Hi there
as you might now I am trying to make a plugin for fusebox 3. what I
was wondering was how do people make their fbx_Layouts.cfm file?

The reson I ask is that I have seen the demo and default but I wanted
to implement best practice.

Personally I do something like:

<cfparam name="defaultLayout" default="homepage">
<cfset fusebox.layoutDir = "layouts\">

<cfswitch expression="#defaultLayout#">
        <cfcase value="homepage">
                <cfset fusebox.layoutFile = "homepage_layout.cfm">
        </cfcase>
        <cfcase value="content">
                <cfset fusebox.layoutFile = "content_layout.cfm">
        </cfcase>
        <cfcase value="login">
                <cfset fusebox.layoutFile = "login_layout.cfm">
        </cfcase>
        <cfcase value="blank">
                <cfset fusebox.layoutFile = "lay_blank.cfm">
        </cfcase>
        <cfdefaultcase>
                <cfset fusebox.layoutFile = "blank_layout.cfm">
        </cfdefaultcase>
</cfswitch>


--
Mark Drew

coldfusion and cfeclipse blogged:
http://cybersonic.blogspot.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188567
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to