Component submenu not showing

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
Ratmil
Joomla! Explorer
Joomla! Explorer
Posts: 318
Joined: Sat Dec 06, 2008 7:07 pm

Component submenu not showing

Post by Ratmil » Sat Jan 15, 2011 7:14 pm

I am preparing my component for Joomla 1.6.
How can I show the submenu for the component? I can see it on Joomla menu. But it doesn't show, as in Joomla 1.5, below the toolbar.
Thanks

mbabker
Joomla! Hero
Joomla! Hero
Posts: 2198
Joined: Sun Feb 28, 2010 8:26 pm

Re: Component submenu not showing

Post by mbabker » Sat Jan 15, 2011 7:28 pm

In the component's helper, define the submenu as such:

Code: Select all

class ComponentHelper
{
	public static function addSubmenu($vName)
	{
		JSubMenuHelper::addEntry(
			JText::_('COM_COMPONENT_SUBMENU_ITEM1'),
			'index.php?option=com_component&view=view1',
			$vName == 'view1');
		JSubMenuHelper::addEntry(
			JText::_('COM_COMPONENT_SUBMENU_ITEM2'),
			'index.php?option=com_component&view=view2',
			$vName == 'view2');
	}


Locked

Return to “Extensions for Joomla! 2.5”