I usually try to make all query files as re-usable as possible (inside that
site)
so that I have for example one query file that I can use to retrieve product
information for single product and then use it everywhere I need (in this
case
it would be for example product edit form and actual product infromation
page).

Tero Pikala

----- Original Message -----
From: "Jeff Peters" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 14, 2002 8:51 PM
Subject: Re: Newbie Q: Layouts and display files


> That's what Fusedocs are all about.  The Fusedoc for the qry file would
> have the recordset definition in its <out> section, while the Fusedoc
> for the dsp file would have the identical definition in its <in>
> section.  This is how the coder knows how to write the fuse.
>
> - Jeff
>
> On Sunday, April 14, 2002, at 01:35 PM, David Grabbe wrote:
>
> > Option #1 here was what I was looking for -- thanks for the help!
> >
> > Another question: I understand the reason for the separation of
> > queries from display files, but am not sure about how they are supposed
> > to interact with each other. For example, if I cfinclude
> > qry_somequery.cfm, and immediately after it I cfinclude
> > dsp_somedisplayfile.cfm to display the results of that query, there is
> > somewhat of a dependency between the 2 in that the name of the query
> > has to be the same in both files, right? In order to make the 2
> > independent, should the query name be defined elsewhere (say, in
> > fbx_settings or in the particular fuseaction in fbx_switch)? How do you
> > make the dsiplay file do what it needs to do with a recordset without
> > hardcoding the name of the query? -- or am I missing something here?
> >
> > David
> >
> >
> >
> > -----Original Message-----
> > From: John Beynon [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, April 14, 2002 12:35 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: Newbie Q: Layouts and display files
> >
> > let me check that i'm understanding you correctly...
> >
> > do you mean that one section of the site home page you want to display
> > this login cell? But on any other page you don't want to display the
> > login cell?
> >
> > 2ways to accomplish this i think:
> >
> > You're gonna need some conditional logic calling the login fuseaction
> > as a CFMODULE...you know what fuseaction the home page is don't you? So
> > why not use something like:
> >
> > <cfif attributes.fuseaction is "home.startpage">
> > <cfmodule template="#fusebox.rootpath##self#"
> > fuseaction="login.showlogin">
> > <cfelse>
> > ...
> > </cfif>
> >
> > in the cell in question. You'd need to supress the layout for the
> > login.showlogin fuseaction else you'll end up with layouts within
> > layouts.
> >
> > *OR*
> >
> > You could move the conditional logic into the fbx_layouts file, and
> > have two seperate layout files, one with the login and one without,
> > something like:
> >
> > <cfif Fusebox.isCustomTag or attributes.suppressLayout>
> > <cfset Fusebox.layoutDir="">
> > <cfset Fusebox.layoutFile="lay_clean.cfm">
> > <cfelse attributes.fuseaction is "home.startpage">
> > <cfset Fusebox.layoutDir="">
> > <cfset Fusebox.layoutFile="lay_typical_with_login.cfm">
> > <cfelse>
> > <cfset Fusebox.layoutDir="">
> > <cfset Fusebox.layoutFile="lay_typical.cfm">
> > </cfif>
> >
> > does this help? hopefully it'll set you off in the right direction - if
> > not just post back.
> >
> > If it was me, i'd be more inclined to go with the first option......
> >
> > john.
> >
> >
> > -----Original Message-----
> > From: David Grabbe [mailto:[EMAIL PROTECTED]]
> > Sent: 14 April 2002 16:37
> > To: [EMAIL PROTECTED]
> > Subject: Newbie Q: Layouts and display files
> >
> > Hello all,
> >
> > I'm BEGINNING to understand the basics of FB (3), but am stuck on the
> > right "fusebox approach" to handle a situation.
> >
> > The website I am working on has a central template which will be the
> > basis of every page. When the site first comes up, it will display
> > this template, and in one section (table cell) will be an area for a
> > current user to enter his/her username and PW. But this is the only
> > time this dsp file should be displayed. So how do you define and
> > manipulate which dsp files are included at different times? All the
> > examples I have seen either have a basic template with dynamic content
> > added via #Fusebox.layout#? Also, how are layout files and display
> > files related?
> >
> > TIA,
> > David
> >
> > _____________________________________________________________________
> > This message has been checked for all known viruses by UUNET delivered
> > through the MessageLabs Virus Control Centre. For further information
> > visit
> > http://www.uk.uu.net/products/security/virus/
> >
> >
>
>

==^================================================================
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
==^================================================================

Reply via email to