RE: Suppressing the Output in a Custom Tag
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/cf-talk@houseoffusion.com/ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
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? We're hiring too fast - there isn't enough mind to go around! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
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. Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: Suppressing the Output in a Custom Tag
I would pass it as a parameter, and output it from the attributes scope. ~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: Troy Hiltbrand [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 10:34 AM To: CF-Talk Subject: 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. Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
Re: Suppressing the Output in a Custom Tag
I would suggest taking a look at the custom tag cf_bodycontent from the fusebox.org tag galleries. It uses a tag and an addition app_layout.cfm to do what your trying to do. Its open source so you can see what its doing and modify it further if necessary. Fred - Original Message - From: "Simon Horwith" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 10:33 AM Subject: RE: Suppressing the Output in a Custom Tag I would pass it as a parameter, and output it from the attributes scope. ~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: Troy Hiltbrand [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 10:34 AM To: CF-Talk Subject: 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. -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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/cf-talk@houseoffusion.com/ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: Suppressing the Output in a Custom Tag
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/cf-talk@houseoffusion.com/ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
Re: Suppressing the Output in a Custom Tag
I think you can remove the contents inside your nested tag like this: cfif ThisTag.ExecutionMode eq 'end' cfset ThisTag.GeneratedContent = '' /cfif Or if you want to see what the output would have been in an HTML comment: cfif ThisTag.ExecutionMode eq 'end' cfset ThisTag.GeneratedContent = '!-- #ThisTag.GeneratedContent# --' /cfif At 08:33 AM 11/9/00 -0700, Troy Hiltbrand wrote: 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. Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] --- Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 x204 Fax 1.212.545.0938 To put this contact information into your Palm device, click here: http://www.coola.com/cgi-bin/addinfo.cgi?pid=15803rid=972879910type=A Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]