More deeper submenu for piwik plugin


(cn_Dark) #1

Hello,

Sorry for my basic English.
Is it possible to add a deeper submenu in plugin’s menu?
For example, I write a plugin “myPlugin”, it has 3 submenu “menu1, menu2,menu3”, and I want to add submenu (menu1-1,menu1-2) in menu1.
myPlugin-> {menu1->menu1-1,menu1-2; menu2; menu3}


(vipsoft) #2

It’s supported by the superfish library, but not implemented in Piwik.

Take a look at core/PluginsFunctions/Menu.php.


(cn_Dark) #3

[quote=vipsoft @ Aug 18 2009, 05:15 AM]It’s supported by the superfish library, but not implemented in Piwik.

Take a look at core/PluginsFunctions/Menu.php.[/quote]
Thank you, vipsoft, I have seen at the code in Menu.php, but I can not understand it well.
How and where I use it?
By hook ‘menu.add’? Or modify this script ‘Menu.php’?
I found that Piwik_AddMenu can only add one submenu in mainMenu. But I want to add submenu like this:
father-child1
-----------child1-1
------------child1-2
---------child2
------------child2-1

Can you give an example or some more detail? style_emoticons/<#EMO_DIR#>/smile.gif

Another small question: Is it possible to change the order of mainMenu?


(vipsoft) #4

cn_dark: do you still need this functionality? We’re upgrading jQuery and the plugins used, and I’m looking at the Superfish menu now.

We can make it work like the nav bar example here:

http ://users.tpg.com.au/j_birch/plugins/superfish/#sample4


(fisher39) #5

Hey,

Has this been implemented? Are more submenus possible?


(vipsoft) #6

No, not yet.

We just updated jquery to 1.3.2 and added jquery-ui 1.7.2 for the upcoming 0.5 release.

There are more backend changes to be made before we attack the GUI.