ich habe den Code aus dem Demomandanten in meinen Mandanten kopiert
Code: Alles auswählen
<?php
/**
* description: top navigation
*
* @package Module
* @subpackage NavigationTop
* @version SVN Revision $Rev:$
*
* @author marcus.gnass@4fb.de
* @copyright four for business AG <www.4fb.de>
* @license http://www.contenido.org/license/LIZENZ.txt
* @link http://www.4fb.de
* @link http://www.contenido.org
*/
// assert framework initialization
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
// get client settings
$rootIdcat = getEffectiveSetting('navigation_top', 'idcat', 1);
$depth = getEffectiveSetting('navigation_top', 'depth', 3);
// get category tree
$categoryHelper = cCategoryHelper::getInstance();
$categoryHelper->setAuth(cRegistry::getAuth());
$tree = $categoryHelper->getSubCategories($rootIdcat, $depth);
// get path (breadcrumb) of current category
function navigation_top_filter(cApiCategoryLanguage $categoryLanguage) {
return $categoryLanguage->get('idcat');
}
$path = array_map('navigation_top_filter', $categoryHelper->getCategoryPath(cRegistry::getCategoryId(), 1));
// use template to display navigation
$tpl = cSmartyFrontend::getInstance();
$tpl->assign('tree', $tree);
$tpl->assign('path', $path);
$tpl->display('get.tpl');
?>
Danke für Eure Hilfe
Allerdings bricht er immer die Ausgabe ab
Code: Alles auswählen
$tpl->display('get.tpl');
Code: Alles auswählen
<container id="1001" name="main navigation" types="navigation" mode="fixed" default="navigation_main">main navigation</container>