Hey..... it's been a long week.
Actually, I've never had to use the generated content attribute... I try to
write my tags to generate exactly what I want from the get go.... like I
said though, it's been a long week.
~Simon
P.S. We are figs.
> Simon Horwith
> Certified ColdFusion Developer
> Fig Leaf Software
> 1400 16th St NW, # 220
> Washington DC 20036
> 202.797.6570 (direct line)
> www.figleaf.com
>
-----Original Message-----
From: David Shadovitz [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 10, 2000 12:02 AM
To: CF-Talk
Subject: Re: Suppressing the Output in a Custom Tag
Don't all you figs or leaves or whatever you're called go through the
mind-meld procedure with Dave? Or is that only after the probationary
period?
-David
On Thu, 9 Nov 2000 10:44:34 -0500 Simon Horwith <[EMAIL PROTECTED]>
writes:
> that's interesting, Dave... I didn't realize you could tell a tag not
> to
> output physical text embedded between it's opening and closing tags.
> You
> learn something new everyday.... thanks.
>
> ~Simon
>
> > Simon Horwith
> > Certified ColdFusion Developer
> > Fig Leaf Software
>
>
> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 09, 2000 10:38 AM
> To: CF-Talk
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Suppressing the Output in a Custom Tag
>
>
> > I am trying to create a tag that will encapsulate all of my
> > page formatting that looks like this.
> >
> > <cf_PageFormat>
> > This is a test
> > </cf_PageFormat>
> >
> > Everything to do with formatting is inside of the custom tag.
> > The problem is that when I run it, it outputs the "This is a
> > test" , then it outputs the formatting and content in the
> > correct place and so I have this stray content at the top.
> > Is there a way to suppress the "This is a test" from the top
> > page making it only output in the specified place in the
> > custom tag where it is formatted.
>
> Why yes, there is. Within the end execution mode of your custom tag,
> set
> ThisTag.GeneratedContent equal to an empty string after doing what
> you want
> to do. In the example below, cf_pageformat outputs its contents in
> uppercase:
>
> <!--- cf_pageformat --->
> <cfif ThisTag.ExecutionMode is "END">
> <cfoutput>#UCase(ThisTag.GeneratedContent)#</cfoutput>
> <cfset ThisTag.GeneratedContent = "">
> </cfif>
>
> Dave Watts, CTO, Fig Leaf Software
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]