Someone else can give you the whole rundown, but you can't use
<cfinclude template="/mysite/blocks/dsp_linklist.cfm?QueryType=Site>
with the variable in the end like QueryType.
All variables are available inside a cfincluded template. The code is just
copy-pasted at runtime.
NAT
> -----Original Message-----
> From: Gary Morin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 7:35 AM
> To: Fusebox
> Subject: The correct way
>
>
> Hi
>
> I trying to get my head around Fusebox, I've done one or two small apps
> using it, but I still have problems figuring out the correct flow.
>
> I'm currently working on a document management project in which I
> use three
> circuits, each to display a report on various aspects of a job.
> Each circuit
> has a main display page to display report data. On this same page
> I need to
> display a list of links to related documents for the current job. The code
> to display the linked documents will be the almost the same for all three
> circuits, the only difference will be the where clause, each circuit will
> require a different set of documents queried.
>
> If I was not using Fusebox, I wouldn't give it a second thought, I would
> just use cfinclude and pass a parameter i.e. <cfinclude
> template="dsp_linklist.cfm?QueryType=Site>
>
> But where I get confused with Fusebox is the flow on calling pages, can I
> use <cfinclude template="/mysite/blocks/dsp_linklist.cfm?QueryType=Site>
> from within dsp_reports.cfm pages
> If I do, in dsp_linklist.cfm I will have to use on url.QueryType.
> If I do it
> this way do I just place CF_Formurl2attributes at the top of it
> dsp_linklist.cfm.
>
> Or should I call it with Cfmodule.
>
> Or in should I place the cfinclude/cfmodule in the circuit
> index.cfm as the
> next line after the dspl_report.cfm
>
> Or should I use <cflocation
> template="/mysite/index.cfm?fuseaction=Listlinks">
>
> Cheers
>
> Gary
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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