User Tools

Site Tools


plugins:tabs_menus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
plugins:tabs_menus [2014/01/04 11:14]
Everyone [Tab Creation Function]
plugins:tabs_menus [2014/01/08 11:26]
Everyone [Side Menu Creation Function]
Line 13: Line 13:
 This way a new parameter **//​my-action//​** is added to the link so you can determine which link was clicked. This way a new parameter **//​my-action//​** is added to the link so you can determine which link was clicked.
  
-(3.1+) If you want a functionality like the "Edit Page" link which only shows if the function is active, add a 4th parameter in the params array as ''​false'':​+(3.1+) If you want a functionality like the "Edit Page" link which is only visible ​if the function is active, add a 4th parameter in the params array as ''​false'':​
  
 <​code>​ <​code>​
Line 22: Line 22:
 When you click the newly created menu link, the function you registered in ''​register_plugin()''​ will be called, and unless you specified the page your new menu link is on in the 7th argument of ''​register_plugin()'',​ the side menu will disappear. When you click the newly created menu link, the function you registered in ''​register_plugin()''​ will be called, and unless you specified the page your new menu link is on in the 7th argument of ''​register_plugin()'',​ the side menu will disappear.
  
-Thus if you add side bar links to two different tabs, you need to change this parameter dynamically,​ e.g. (setup on the plugins tab, other functionality on theme tab):+Thus if you add side bar links to two different tabs, you need to change this page type parameter dynamically,​ e.g. setup on the plugins tab, other functionality on theme tab:
  
 <​code>​ <​code>​
plugins/tabs_menus.txt ยท Last modified: 2014/02/07 10:02 by datiswous