aight.  

and yeah, cfloop for query recordset returning is most usually all i
EVER use...there just doesnt seem to be the need to use cfoutput
query="" because
i guess i feel like i have more control of a loop, with and index called i :)

anyway, thanks!

tw

On Wed, 25 Aug 2004 19:46:03 -0700, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> I usually start apps out with CFSETTING ENABLECFOUTPUTONLY="true", and
> then put CFOUTPUT tags around every block of content, whether it's
> doing dynamic evaluation or not.  So everything that the client sees
> is surroinded by CFOUTPUT tags, which are directly in the file that
> generates the content.
>
> Pretty much every file looks like this, optionally with either the
> processing or the CFOUTPUT block missing.
>
> <!--- do some processing --->
> <cfoutput>
> <table ... >
> ....
> </table>
> </cfoutput>
>
> The only think you have to watch out for is if you need to use
> CFOUTPUT for a query loop (for grouping).  Then you have to break your
> big CFOUTPUT block into a "before" and "after" section, with the
> "middle" section being the CFOUTPUT QUERY=".." GROUP="..".  Kind of
> messy when you've got conditionals in the mix as well, but I've found
> that needing CFOUTPUT for looping is a very rare occurance, and
> actually happens more frequently in processing code, rather than
> display code.  Just make sure that you wrap with CFSILENT if you're
> using CFOUTPUT for processing without display, or you'll get a bunch
> of whitespace.
>
> cheers,
> barneyb
>
>
> On Wed, 25 Aug 2004 22:30:20 -0400, Tony Weeg <[EMAIL PROTECTED]> wrote:
> > i have a custom tag (ive really only used one like 2 other times) but anyway
> > where does one put cfoutputs when using a custom tag in the most elegant way?
> >
> > i basically have  an applciation
> > that is a custom tag for the layout, and the guts are made up of a
> > bunch of cfincludes with a master page that has a bunch of cfcases and
> > blah blah blah...it started out as a 5000 line .cfm template, and i
> > wanted to break it up, and get
> > it modularized, reuse some code, etc.. its all good, but in the
> > original app i had a cfoutput around the entire template...now, that
> > aint jiving...whats the most elegant way? inside all of the cfincluded
> > templates since wrapping <cfoutput's> around the cfinclude tags isnt
> > working either :)
> >
> > i know i must have learnt this nufangled reasoning at some point last
> > year studying for the certification test, but its slipping my mind,
> > thanks...if you can just point me in the right direction...
> >
> > :) me
> >
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to