You need this: <CFIF thistag.ExecutionMode is 'END'> <!-- process text then output here --> <CFSET ThisTag.GeneratedContent = ""> <cfelse> <!-- do not output text here --> </CFIF>
The reason that you get both modified content and the raw content is that the generated content gets passed to the HTML stream after the tag executes no matter what. any outputting done in the tag itself is just added to the stream. Thus, after modifiying and outputting the new content, you have to set the generated content to the empty string (which gets send to the HTML stream). barneyb --- Barney Boisvert, Senior Development Engineer AudienceCentral (formerly PIER System, Inc.) [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 1:06 PM > To: CF-Talk > Subject: RE: thistag.generatedContent > > > I'm confused. Your code says... > > If I'm in the end mode, do nothing. (Well, to be literal, you output a > HTML comment. Notice your comment has 2 dashes, not three.) > > If I'm in the start mode, change thisTag.generatedContent to an empty > string. > > However, in the start mode, you don't have generatedContent. > > If you want to remove the content, move that cfset line to the end mode > branch. > > ======================================================================== > === > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > (www.mindseye.com) > Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) > > Email : [EMAIL PROTECTED] > Blog : www.camdenfamily.com/morpheus/blog > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 03, 2003 2:57 PM > > To: CF-Talk > > Subject: thistag.generatedContent > > > > > > I have a custom tag: > > > > <cf_myTag> > > Here is a bunch of output > > </cf_myTag> > > > > and I want to process the "Here is a bunch of output" text like > > this: > > > > <CFIF thistag.ExecutionMode is 'END'> > > <!-- process text then output here --> > > <cfelse> > > <!-- do not output text here --> > > ~<CFSET ThisTag.GeneratedContent = ""> > > </CFIF>~ > > > > Using the above code my processed output and my raw output are > > both being displayed. I know I have done this before but I can't > > seem to get it working. > > > > Thanks > > David > > > > ___________________________________________________________ > > Sent by ePrompter, the premier email notification software. > > Free download at http://www.ePrompter.com. > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

