OK solved it by thinking of it from another angle. I had to tweak the database structure to work with it. I can't juse use a flag for submenu but need to do a parent-child type of linkage. So basically need to run a separate query to get all the submenus and keep everything within the CFMENUITEM tags.
> OK.. I don't know if it is some sort of brainblock or just me. > > I am trying to create a loop which will dynamically create a menu with > submenu (if needed). To make it easier, there is only 1 level for > submenu which is just a flag in the DB. There MAY or MAY NOT be any > submenus in a menu. > > Now the problem I am getting is simple, CFMENU chokes when I put a > CFIF condition to close and open a CFMENUITEM tag. The error would be > a missing START or END tag no present for the CFMENUITEM tag. > > The only way I think I can solve it is check to see if there IS any > submenu and if there is, use a special submenu loop. Otherwise, use > the non-submenu loop. > > My brain must be tired from waiting for Halo 3 earlier (didn't really > even play it). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289462 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

