user3779216
user3779216

Reputation: 75

ColdFusion CFLayout does not wotk with cfif?

I'm trying to do this but it seems that both of the included templates are being shown on the page. It's like the cfif cfelse are being ignored:

<cflayout type="tab" name="GroupTab" width="910" height="560">
    <cflayoutarea name="IssuesTab" selected="#isSelected#"      
                             title="SoftwareIssues" style="height:100%">
      <br>
      <CFIF IsDefined("url.item")>
    <cfinclude template ="addnew.cfm>

      <CFELSE>
         <cfinclude template="issues.cfm">
      </CFIF>
   </cflayoutarea>
</cflayout>

Can't I do that with cflayout? I'm working within the scope of iFrame. If cflayout does not allow using cfif cfelse is there any work around?

Upvotes: 0

Views: 28

Answers (1)

Arpit Totla
Arpit Totla

Reputation: 11

Ifelse condition is working well with cflayout

You have forgot " at the end of file name

Your <cfinclude template ="addnew.cfm>

correct one <cfinclude template ="addnew.cfm">

Upvotes: 1

Related Questions