Fixed gh-394 so to be able to target the component instead of a single view.
This commit is contained in:
@ -13464,7 +13464,19 @@ class Interpretation extends Fields
|
||||
}
|
||||
if (isset($this->categoryBuilder[$nameList]) && ComponentbuilderHelper::checkArray($this->categoryBuilder[$nameList]) && !in_array($otherViews, $catArray))
|
||||
{
|
||||
$menus .= PHP_EOL . $this->_t(2) . $tab . "JHtmlSidebar::addEntry(JText:" . ":_('" . $this->categoryBuilder[$nameList]['name'] . "'), 'index.php?option=com_categories&view=categories&extension=com_" . $codeName . "." . $otherViews . "', \$submenu === 'categories." . $otherViews . "');";
|
||||
// get the extention array
|
||||
$_extetion_array = explode('.', $this->categoryBuilder[$nameList]['extension']);
|
||||
// set the meny selection
|
||||
if (isset($_extetion_array[1]))
|
||||
{
|
||||
$_menu = "categories." . trim($_extetion_array[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$_menu = "categories";
|
||||
}
|
||||
// now load the menus
|
||||
$menus .= PHP_EOL . $this->_t(2) . $tab . "JHtmlSidebar::addEntry(JText:" . ":_('" . $this->categoryBuilder[$nameList]['name'] . "'), 'index.php?option=com_categories&view=categories&extension=" . $this->categoryBuilder[$nameList]['extension'] . "', \$submenu === '" . $_menu ."');";
|
||||
// make sure we add a category only once
|
||||
$catArray[] = $otherViews;
|
||||
}
|
||||
|
Reference in New Issue
Block a user