Default submenu in plugins


Hi All,

I am currently writing a plugin and I struggle with specifying the default submenu.
I have used the $order parameter in Piwik_AddMenu which allowed me to order the submenus the way I want, but I can’t for the life of me figure out how to specify the submenu that will get selected if I click on the top menu.

Any tips?

(Matthieu Aubry) #2

It’s automatically the first submenu that should be clicked when the main menu is clicked, is it not working?


In my case it’s the 4th submenu which is selected by default.

Note though, that I’m still on Piwik1.2. I don’t know if this is a bug that has been fixed in newer versions?
Unfortunately, our Piwik installation has undergone too many changes to allow for an upgrade.



(Matthieu Aubry) #4

It’s probably a bug that has been fixed, 1.2 is very old version


Any tips on how to go about fixing this in the Piwik code?