Hi,
I am using Cmenu widget, is there an easy way to get the current active menu item name in each page. could be something like
CMenu->items->activeLabel
I have searched this fourm, it seems no relevant question, I also read the Cmenu API,but couldn’t find an API like above. any pointers are appricated.
zaccaria
(Matteo Falsitta)
July 15, 2011, 10:05am
2
No there isn’t, and in fact you can have also more than one label active each time.
thanks for you reply,zaccaria.
enmmm…I think this could be a common practice to get like category id or name to do some business logic. don’t you think?
andy_s
(Arekandrei)
July 15, 2011, 12:03pm
4
bingjie2680:
thanks for you reply,zaccaria.
enmmm…I think this could be a common practice to get like category id or name to do some business logic. don’t you think?
Never needed to make something dependent on the active menu item… It sounds weird, things should depend on controller/action id or other their properties.
Ok, I see, thank you both.