Simply do:

<CFSET ThisTag.GeneratedContent = "">

Make sure you do it in ThisTag.ExecutionMode EQ "End".

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Jamie Jackson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 11:38 AM
> To: CF-Talk
> Subject: [Custom Tag Question] ThisTag.GeneratedContent...
> 
> 
> Please tell me if the following is possible, and how: I want to stifle
> the output of the area between <cf_MyTag> and </cf_MyTag>.
> 
> Here is a simplified example: I the following output: "Hello World, I
> do want to display this sentence."
> 
> ### Calling script ###:
> <cf_MyTag>
> Hello, World, I do NOT want to display this sentence.
> </cf_MyTag>
> 
> ### MyTag.cfm (custom tag) ###:
> <cfoutput>#ReplaceNoCase(ThisTag.GeneratedContent, 'do NOT',
> 'do')#</cfoutput>
> 
> Currently, this displays:
> "Hello, World, I do NOT want to display this sentence. Hello, World, I
> do want to display this message." (Obviously, I don't want the first
> sentence displayed.)
> 
> Is this best handled by <cfsetting cfoutputonly="yes">, or is there
> another way that's already built into the custom tag framework?
> 
> Thanks,
> Jamie
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to