Hi Lisa,
Ok, this is the code you posted:
<CFSET mode = "directory">
<CFIF IsDefined("url.cat_id") IS True>
<CFIF #url.cat_id# IS "103">
<CFELSE>
<CFSET mode = "category">
</CFIF>
</CFIF>
<CFSET mode = "subcategory">
<CFIF IsDefined("url2.cat_id") IS True>
<CFIF #url2.cat_id# IS "100">
<CFSET mode = "subcategory">
<CFELSE>
<CFSET mode = "category">
</CFIF>
</CFIF>
Working through the logic, could this work?
<cfset mode = "directory">
<cfif isdefined("url.catID") and url.catID is 103>
<cfset mode = "category">
<cfelseif isdefined("url.catID2") and url.catID is 100>
<cfset mode = "subcategory">
</cfif>
I noticed you used the variable url2.variable and I'm not aware this is
valid, I've only used url.variable myself?
Are you just assigning the one variable from the url ?
Hope this helps,
Jenny
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:15:1451
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