Hi Dan,

CF won't let you split the Cfif tags across the includes:  to my
understanding, each needs to be syntactically on its own.  Even if it
did allow it, it'd be awfully hard to debug!

-Joe

On 5/17/05, Daniel Kessler <[EMAIL PROTECTED]> wrote:
> 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:206847
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

Reply via email to