I don't believe this can be done, not like this anyway. CF is looking for the closing if in the first include.
-----Original Message----- From: Daniel Kessler [mailto:[EMAIL PROTECTED] Sent: 17 May 2005 13:50 To: CF-Talk Subject: included cfif error I have two includes, where one contains the beginning of a cfif and the other contains the end of the cfif, with the content in the middle: <cfinclude template="../template_blocks/content_block_1.cfm"> <!--- content ---> <!--- end content ---> <cfinclude template="../template_blocks/content_block_2.cfm"> Here's the code in the includes: <!--- content_block_1.cfm ---> <div class="margin_8 orange_link"> <cfoutput> <img src="#request.imagesdomain#spacer.gif" border="0" height="5" width="0"><br> <cfif isDefined('cookie.empower_login')> <!--- end content_block_1.cfm ---> <!--- content_block_2.cfm ---> <cfelse> To use this page, please first <a href="#request.commondomain#login_form.cfm">login</a>. </cfif> </cfoutput> </div> <!--- end content_block_2.cfm ---> This code works fine when not in the includes, but separated and made into includes, I get an error, "Context validation error for tag cfif" which refers to the <cfif isDefined('cookie.empower_login')>. I thought I'd broken up cfif statements into two pieces of an include before, but maybe not. Any thoughts? -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 301-405-2545 Phone www.phi.umd.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:206845 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