How to add component submenu in joomla 1.6



Joomla 1.5 programmer will be confused about submenu of component. In joomla 1.5, they don't have to worry, it automatic displays when we add submenu by xml install file or insert dirrect to jos_component table in database. Now in joomla 1.6, it is not like that. We have to add it manually.

My suggestion is that we add it in toolbar file with this:

$vName =$task;
JSubMenuHelper::addEntry( JText::_('name'), 'link_to_your_task', $vName == 'taskname' );

$task is your task or view of your component. The first line let joomla know which menu is active. IF you have 5 menu, replace the taskname, name, and link by 5 menus name, taskname and link.



Responses

0 Respones to "How to add component submenu in joomla 1.6"

Post a Comment

 

Link Liên kết

Thông tin liên hệ

YH: huonggiangdhtn
Skype: tthuonggiang
Return to top of page Copyright © 2010 | joomla extensions jw-extension.net