Any help or input on this would be appreciated.

I'm calling selected information from a database. There are several
categories and subcategories.
I want to call an entire category and list its subcategory contents for the
user.
I think the problem is in this part of the code as cfelse only appears 3
times in the entire code.

This (and other code) works to call all of category 103:

<CFSET mode = "directory">
<CFIF IsDefined("url.cat_id") IS True>
        <CFIF #url.cat_id# IS "103">
<CFELSE>
<CFSET mode = "category">
</CFIF></CFIF>

I added this (and other code) to collect the same type of information form
category 100:

<CFSET mode = "directory">
<CFIF IsDefined("url2.cat_id") IS True>
        <CFIF #url2.cat_id# IS "100">
                <CFSET mode = "subcategory">
<CFELSE>
<CFSET mode = "category">
</CFIF>
</CFIF>

The error I'm getting is:

QueryString:
Error: Context validation error for tag CFELSE. The tag must be nested
inside a CFIF tag.
The error occurred on line -1.

My questions are: 1. Do I need the syntax of using the 2 parts together
different that just using one?

2. It appears I can't use <cfelseif  > as it doesn't seem to like the <  >
inside it's own <  > tags.

<CFIF Condition><CFELSEIF Condition><CFELSE></CFIF>

Thanks,
Lisa



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1438
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to