Custom Joomla website design and development.

Home Knowledge Base Knowledge Base Modules not showing up on JA-Pyro

Modules not showing up on JA-Pyro

Rate this item
(0 votes)

I found this bug with the template JA-Pyro. Most users won't notice this issue, because it menu aliases are rarely used in the mainmenu. The menu system the template uses does not add Itemids to menu aliases. The fix is quick and simple.

FILE: ja-pyro/libs/menu/base.class.php

REPLACE
if ($tmp->type == 'menulink')
{
$menu = &JSite::getMenu();
$alias_item = clone($menu->getItem($tmp->query['Itemid']));                
if (!$alias_item) {
return false;
} else {
' $tmp->url = $alias_item->link;
}
}

WITH
if ($tmp->type == 'menulink')
{
$menu = &JSite::getMenu();
$alias_item = clone($menu->getItem($tmp->query['Itemid']));                
if (!$alias_item) {
return false;
} else {
' $tmp->url = $alias_item->link."&Itemid=".$alias_item->id;
}
}
Trevor Bice

Trevor Bice

Owner, Joomla Expert

...I'm a one man army

E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
More in this category: « Prev