> I have a custom tag that has a start and end tag in cfml. > For example: > > <cf_mytag> > some text > </cf_mytag> > > I can't seem to get the "some text" to stop appearing on the > page. I've tried enablecfoutputonly="yes" and <cfsilent> in > the tag itself but I still see the text between the tags on > the page. How can I get rid of it? This is on a cfmx 6.1 box, > BTW.
If I recall correctly, you will need to set ThisTag.GeneratedContent to an empty string during the end execution mode of your custom tag: <cfif ThisTag.ExecutionMode is "end"> <cfset ThisTag.GeneratedContent = ""> </cfif> Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198621 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54