You can add a category manager with just a few lines of code. If you
look at administrator/components/com_weblinks/weblinks.xml, you will
see a menu link element with:
<menu link="option=com_categories&extension=com_weblinks"
view="categories" img="class:weblinks-cat"
alt="Weblinks/Categories">com_weblinks_categories</menu>
This adds the category menu during installation. Then, in
administrator/components/com_weblinks/helpers/weblinks.php there is
this code:
JSubMenuHelper::addEntry(
JText::_('COM_WEBLINKS_SUBMENU_CATEGORIES'),
'index.php?option=com_categories&extension=com_weblinks',
$vName == 'categories'
);
if ($vName=='categories') {
JToolBarHelper::title(
JText::sprintf('COM_CATEGORIES_CATEGORIES_TITLE',
JText::_('com_weblinks')),
'weblinks-categories');
}
That adds the Categories tab to the Web Links manager. All we are
doing is calling com_categories with the extension variable in the
URL.
Good luck. Mark