Welcome to Fusebox, Andy. Hang in there; there's a point in the FB learning curve that I think of as the "lightbulb" or "eureka" moment. Things seem muddled until the lightbulb goes off, then it's all so clear. It's a funny phenomenon, but every Fuseboxer I've talked to has been through it.
For an application like yours, where you don't want a user to see anything unless they log in first, a two-circuit (at least) design is appropriate. The first circuit would be Login (or Security, or Doorman, or whatever you choose to name it, and the other circuit would be whatever the app is--I'll use "Catalog" as an example. The trick is to have a display layout for Login, and a different one for Catalog. You put your "is the user logged in?" detection in Application.cfm or index.cfm, such that if the user is not logged in, your redirect them to something like Login.showLoginForm. If the user is not logged in, they get redirected, and Fusebox uses the layout for the Login circuit (which doesn't have your menus, etc.). Otherwise, they don't get redirected, and Fusebox uses the layout for whichever non-Login circuit they've requested. You can include the circuit's layout display in the postfuseaction element in circuit.xml. That way it only gets executed for fuseactions in that circuit. - Jeff On 15 Feb 2005 at 12:40, Andy Mcshane wrote: > Andy, > > Welcome aboard, don't give up just yet. Instead of me explaining exactly > what each thing does in fusebox (do,set,circuit, etc) let me direct you to > fusebox.org where you can get a quick introduction to FB. What I would > recommend is downloading some of the example applications and learn how they > work. Take notes as to what things are applicable in your application and > try to implement them. Once you better understand the basic concepts wihin > fusebox, post some more detailed questions. I know this is probably not the > answer you wanted to hear but I promise, a little time spent with a couple > example applications (they are small) willl help you get going. > > Good luck! > > Mike > > Thanks for the reply Mike, I will do just that. as they say 'I'll be back', > no doubt with millions of questions!. > > Just before I go I wonder if you clarify whether what I am currently doing is > on the right track. I have created the following folder structure > 'view/layouts' and in there I have put all the stuff I need to build the > generic appearence of my site. I have decided to do this using > contentvariables so that I can output my main content in the correct place. > Now, if I am thinking correctly, I will have to perform a 'do' action from > within my main 'fusebox.xml.cfm/globalfuseaction/postprocess' area? > > Ok, so I have tried to do this and it has worked to a point. The problem > arises because of my login page. When users are logging in then I do not want > to do my page layout at all. If I remove the 'do' action from the postprocess > area is it then acceptable practice to include it into the circuit.xml page > of all of my other circuits or is there still another single place where this > can be done? I do hope that this makes sense as I am starting to confuse > myself just writing it!!! > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase Captivate from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=52 Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6602 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
