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
> 1400 16th St NW, # 220
> Washington DC 20036
> 202.797.6570 (direct line)
> www.figleaf.com
>
-----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
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
----------------------------------------------------------------------------
--------------------
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]