Hi,
ich hatte das Problem, dass ich die gesamte Catalog-Navigation (welche sich auf ein Tag-Feld bezieht => Daten hierfür kommen aus Taxanomie) inklusive aller Unterelement ausgeben sollte. Also auch alle Untermenüpunkte, selbst wenn der Überpunkt nicht active ist. Hierfür ist es lediglich nötig in der ModuleCatalog.php in der Funktion internalRenderCatalogNavigation() den folgenden Code zu überarbeiten.
vorher:
nachher:
ich hatte das Problem, dass ich die gesamte Catalog-Navigation (welche sich auf ein Tag-Feld bezieht => Daten hierfür kommen aus Taxanomie) inklusive aller Unterelement ausgeben sollte. Also auch alle Untermenüpunkte, selbst wenn der Überpunkt nicht active ist. Hierfür ist es lediglich nötig in der ModuleCatalog.php in der Funktion internalRenderCatalogNavigation() den folgenden Code zu überarbeiten.
vorher:
PHP-Code:
$items[] = array
(
'isActive' => false,
'subitems' => $isTrail?$subitems:'',
'subitemcount' => $objNodes->itemCount,
'class' => (strlen($strClass) ? $strClass : ''),
'pageTitle' => specialchars($arrJump['pageTitle']),
'title' => specialchars($objNodes->name),
'link' => specialchars($objNodes->name),
'href' => $href,
'alias' => $arrJump['alias'],
'target' => (($arrJump['type'] == 'redirect' && $arrJump['target']) ? ' window.open(this.href); return false;' : ''),
'description' => str_replace(array("\n", "\r"), array(' ' , ''), $arrJump['description']),
'accesskey' => $arrJump['accesskey'],
'tabindex' => $arrJump['tabindex'],
'itemAlias' => $value
);
PHP-Code:
$items[] = array
(
'isActive' => false,
'subitems' => $subitems,
'subitemcount' => $objNodes->itemCount,
'class' => (strlen($strClass) ? $strClass : ''),
'pageTitle' => specialchars($arrJump['pageTitle']),
'title' => specialchars($objNodes->name),
'link' => specialchars($objNodes->name),
'href' => $href,
'alias' => $arrJump['alias'],
'target' => (($arrJump['type'] == 'redirect' && $arrJump['target']) ? ' window.open(this.href); return false;' : ''),
'description' => str_replace(array("\n", "\r"), array(' ' , ''), $arrJump['description']),
'accesskey' => $arrJump['accesskey'],
'tabindex' => $arrJump['tabindex'],
'itemAlias' => $value
);