Marc, you bring up some good points. I think if you can hold off a bit until early May, there'll be some additional techniques available that will give you the granularity you wish while still meeting the FB3 spec.
----- Original Message ----- From: "Marc Funaro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 17, 2002 8:46 AM Subject: RE: How to turn off layout > Thank you all for pursuing the thread that I started on this topic. I > understand now how I "could" do this, and will probably use your suggestions > for my current project with no difficulty. But now I have deeper questions > regarding the fusebox architecture itself when related to this. This > message probably should be moved to the FB Steering list... > > It seems to me that since FB3 stresses the use of circuits, and by default > each circuit has it's own layout, and since nested layouts are a "big plus" > to FB3, that there should be some sort of API to support changing the > layouts "on the run". In other words, shouldn't there be a way to say: > > <CFSET Request.home.layout = "dsp_NonDefaultLayout.cfm"> > > (or whatever scope seems appropriate to the powers that be)? > > This way, in any given fuse, I could re-set the layouts during execution of > the fuse by just setting layout variables to the filename in that circuit... > with the default in ALL circuits always being "dsp_DefaultLayout.cfm". > Suppressing layout could really be a matter of CFSETting the layout for any > particular circuit to dsp_BlankLayout.cfm, or adding another variable to the > API that would be built in to the layouts code "out of the box". Heck, if > one circuit needs the home circuit to ALWAYS use a different layout, the > CFSET could occur in the fbx_settings.cfm file for that circuit. This is > totally granular; the CFSET can now occur at the circuit OR the fuse level, > allowing the nested layouts to be constructed as we see fit without a bunch > of CFSWITCH statements in all the circuits... > > Since we already keep track of circuits, and since setting variables seems > faster and easier than a ton of conditional logic, why wouldn't this work > more easily? What am I missing? > > Thanks for listening! > > Marc > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002 2:23 PM > To: [EMAIL PROTECTED] > Subject: Re: How to turn off layout > > > Lee, > Took your advice - went to the gym, then a meeting, then a walk around the > lake. > Came back - followed your instructions and > I have 2 circuits working so far. I will continue to plug away. > Thank you for all of your help. > Loryn > Lee Borkman wrote: > > Hi Loryn, Put your hands behind your head and stpe away from your > computer...Take a few deep breaths. > Okay, to turn the parent layout on or off depending on which child > circuit is being called: > > a.. Make the parent circuit's fbx_layouts handle a variable like > attributes.stoplayout; > b.. Make some of your circuits set attributes.stoplayout=true, and > some of them set attributes.stoplayout=false. This should probably be done > at the end of the child circuits' fbx_layouts. > To make one circuit use different layouts: > a.. Make that circuit's fbx_layouts accept a multi-value flag, > preferably something that says something about the content being displayed > b.. Set the value of that multi-value flag within each fuseaction. > As a final thought, if layouts are mysteriously failing to display, have > a close look at your home circuit's fbx_circuits. Check the syntax > thoroughly, make sure there are no trailing slashes in the circuit values, > and make sure that all of the circuit values use identical "dummy" names in > the first part of the path. FB3's nested layouts are currently > hyper-sensitive to errors in the circuits definitions. Hope that gets you > started/finished,LeeBB----- Original Message ----- > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Sent: Wednesday, April 17, 2002 1:06 AM > Subject: RE: How to turn off layout > All, > I have tried to follow the examples posted regarding layouts but > I am confused and getting nowhere fast. > > I have an application with several circuits. In 3 of the circuits > I want the parent layout to be applied. > In 2 of the circuits I DO NOT want the parent layout applied. I > want different layouts applied within those circuits depending > upon which fuseaction is being called. > > If I get it so that the circuit layout is applied in the child > circuit correctly, the parent layout is not applied when I switch > back to the parent. The home/fbx_layouts file is skipped > completely! > > I have tried conditional logic, attributes.stoplayout etc. but > find myself getting more confused by the minute. > > Any or all help is greatly appreciated. > Thank You in advance, > Loryn Williams > > > > > ==^================================================================ 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 ==^================================================================
