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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206844
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