Admin Menu: Component Section

The support for Joomla 2.5 ended on December 31, 2014. Possible bugs in Joomla 2.5 will not be patched anymore. This forum has been closed. Please update your website to Joomla 3.x

Moderators: ooffick, dam-man

Forum rules
Please use the official Bug Tracker to report a bug: http://issues.joomla.org
User avatar
Batch1211
Joomla! Intern
Joomla! Intern
Posts: 85
Joined: Sat Sep 02, 2006 6:11 pm
Location: Schwerin, Germany

Admin Menu: Component Section

Postby Batch1211 » Sat Jul 31, 2010 6:24 pm

Hi everyone,

I guess this is a bug. At least I don't understand the logic behind this behaviour.

When I install a new J 1.6 component a new admin menu item is automatically created, based on my manifest entries. So I was wondering, why Joomla always puts the menu-item-alias in the menu and NOT the menu-item-title. So I took a look in the code, and I found this in

administrator/modules/mod_menu/tmpl/default_enabled.php in line 174:

Code: Select all

$text = $lang->hasKey($component->title) ? JText::_($component->title) : $component->alias;

   if (!empty($component->submenu))
   {
      // This component has a db [drive] submenu.
      $menu->addChild(new JMenuNode($text, $component->link, $component->img), true);
      foreach ($component->submenu as $sub)
      {
         $text = $lang->hasKey($sub->title) ? JText::_($sub->title) : $sub->alias;
         $menu->addChild(new JMenuNode($text, $sub->link, $sub->img));
      }
      $menu->getParent();
   }
   else {
      $menu->addChild(new JMenuNode($text, $component->link, $component->img));
   }


Why does it use themenu-item alias when there is no Translation found for the menu-item-title?
That doesn't make any sense to me.

Return to “Joomla! 2.5 Bug Reporting”

Who is online

Users browsing this forum: No registered users and 6 guests