Try this out, cfexit will only exit from the included template, and run everything else. You can also use <cfexit method="EXITTAG"> if you only want to exit from a tag.
<!--- contents of test1.cfm ---> <cfinclude template="test2.cfm"> <p>This should always show <!--- contents of test2.cfm ---> <cfif 1 EQ 1> Test2 just got terminated!<br> <cfexit method="EXITTEMPLATE"> <cfelse> Test2 was included!<br> </cfif> _____________________________ steve oliver senior internet developer atnet solutions, inc. http://www.atnetsolutions.com -----Original Message----- From: Simon Horwith [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 12:54 PM To: CF-Talk Subject: RE: CFABORT template, not all CF processing? <CFEXIT> will, when called on a regular template (non-custom tag) allow onrequestend.cfm to still be processed.....other than that, it behaves the same as cfabort, as Dave pointed out. ~Simon Simon Horwith Macromedia Certified Instructor Certified Advanced ColdFusion 5 Developer Fig Leaf Software 1400 16th St NW, # 500 Washington DC 20036 202.797.6570 (direct line) www.figleaf.com -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 12:51 PM To: CF-Talk Subject: RE: CFABORT template, not all CF processing? > > I was wondering if there is a way to abort a particular > > CF Template, but not all CF processing? Right now I'm > > wrapping my code with CFIF tags which determine if the > > code will run or not. > > Try using <CFEXIT> That'll only work if called from within a custom tag. Otherwise, it'll simply abort the page. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

