it would probably be several files SR:
all select queries go into their own qry_ file.
the html and cfoutput would go into a dsp_ file
the cfif statements you've got there (and this I think comes down to
individual preference, I'm not sure if it's exactly 'proper' fusebox) I
personally would put in the index.cfm file. Inside your case statement that
does the display, use the cfif's to determine which qry_ file to include.
Then perhaps set a variable attributes.query_name (or whatever) to the name
of the query, so the dsp_ file can use it.
perhaps there's a better way, but that's how I've done it so far
Toby
Toby Tremayne
Code Poet and Zen Master of the Heavy Sleep
Show Ads Interactive
359 Plummer St
Port Melbourne
VIC 3207
P +61 3 9245 1247
F +61 3 9646 9814
ICQ UIN 13107913
-----Original Message-----
From: S. R. [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 3 March 2001 10:46 AM
To: Fusebox
Subject: correct format?
What is the correct/best way to take a file that has a mixture of <cfif>
<cfquery> <cfoutput> and html all mixed together and put it in fusebox
format.. Would it be an act_ file?
Example:
<html>
<body>
<cfquery>
<cfoutput></cfoutput>
<cfif>
<cfquery>
<cfif></cfif>
<cfif></cfif>
</cfquery>
<cfelseif>
<cfquery>
</cfif>
<cfoutput>#cfquery#</cfoutput>
<cfif>
<cfoutput></cfoutput>
</cfif>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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