That could be an enhancement, but the issue I have is that there are so many ways you could render a Menu: drop down list, accordion style, I don't think the control can deal with all the permutations. This is why I think a Velocity macros are good for this stuff.
Another question which springs to mind is with hierarchical menu, should the top level menu item also be selected, i.e. render class="selected", as well as the selected child element? regards Malcolm Edgar On Tue, May 19, 2009 at 10:35 PM, Freddy Daoud <[email protected]> wrote: > Hi gang, > > Apologies if this has already been addressed (my search on the archives did > not > bear fruit). > > Any chance of having the Extras Menu control render a selected class by > default > on the menu for which isSelected() returns true? i.e. > > a class="selected" ... > > This would be nice because you could just iterate over the menus and render > each with $menu, instead of having to write an if/else block and render the > link "by hand" for the selected menu. Note that I don't mind the if/else > block, > but rather that there's no easy way to inherit the default rendering and just > adding the "selected" class on the selected menu. (Correct me if I'm wrong.) > > Thanks for your help! > > Cheers, > Freddy > > >
