cfmenu won't handle cfifs
Greetings-
I'm attempting to build out a dynamic menu using a simple cfquery and nesting cfmenuitem tags inside of a cfmenu tag. Hardcoding this code works fine, but when I attempt to use cfif statements within the cfmenu tags to dynamically include or exclude menuitems I get the following behavior:
The only condition I've been able to get CF to view and recognize while nested within the cfmenu tags is a numeric comparison (cfif 1 LT 2). Then my menuitem appears.
If I use something a little more traditional like (cfif qName.value CONTAINS "expected value") or (cfif qName.value IS "expected value") the values never appear as expected.
Yes, I've pulled the cfifs out of the cfmenu tags and tested the raw conditions, and the conditions are true and will print/dump to screen, so the conditions are not the suspect.
Does anyone know of any limitations/restrictions/workarounds to build dynamic cfmenus using a query? I wasn't able to pull up anything online....
Thanks in advance,
Rich
