Thanks for that, Dan, but I'd actually mistyped. I wanted the closing tag to still execute, just skipping the body. Not surprisingly, I was also writing a caching tag, the difference being that the cached content were generated Flash movies, so the "output" operation (which takes place in the close tag) is rather cumbersome and I didn't really want to UDF it so I could call it in both starting and ending tags.
However, I ended up doing exactly that, and it'll work. Just seems like a bit of a language shortcoming to me. In psuedo-code: <cfif thistag.executionmode EQ "start"> <cffunction name="writeFlash"> <!--- generate EMBED, OBJECT, PARAM, etc. ---> </cffunction> <cfif cached> <cfset writeFlash() /> <cfexit method="exittag" /> </cfif> <cfelse> <!--- do cache the generated movie ---> <cfset writeFlash() /> </cfif> cheers, barneyb On 8/24/05, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: > Barney, > > >Is there a way to, in the opening tag of a custom tag, tell the custom > >tag to skip evaluation of it's body? > > > ><p:mytag> > > i don't want to do this > ></p:mytag> > > > >mytag.cfm: > ><cfif this.executionMode EQ "start"> > > <cfexit method="goToJustAfterClosingTag" /> > ></cfif> > > You should be able to do cancel the entire request: > <cfif this.executionMode EQ "start"> > <cfexit method="exitTag" /> > </cfif> > > I wrote a cf_CacheObject tag a long time ago which I used to cache a bunch > of code that really CPU intensive. Here's the code (please forgive the > uppercase--I wrote the code 4 years and a week ago): > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:216296 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54