Classic Days Schloss Dyck August 2018
Classic Days Schloss Dyck August 2018
0.jpg
1.jpg
10.jpg
11.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg
7.jpg
8.jpg
9.jpg
of current category
if (!function_exists("navigation_top_filter")) {
/**
*
* @param cApiCategoryLanguage $categoryLanguage
* @return int
*/
function navigation_top_filter(cApiCategoryLanguage $categoryLanguage) {
return $categoryLanguage->get('idcat');
}
}
$path = array_map('navigation_top_filter', $categoryHelper->getCategoryPath(cRegistry::getCategoryId(), $sektionStartCatLevel));
$tree = $categoryHelper->getSubCategories($path[0], $depth);
/* Breadcrumb*/
// get category path
$categories = $categoryHelper->getCategoryPath(cRegistry::getCategoryId(), 1,3);
// get breadcrumb (w/o first level)
$breadcrumb = array();
foreach ($categories as $categoryLang) {
$breadcrumb[] = $categoryLang->getField('name');
}
if(preg_match('/en$/',$breadcrumb[0])){
$breadcrumb[0] = substr($breadcrumb[0],0,-2);
}
$sektionsname = $breadcrumb[0].' '.$breadcrumb[1];
//print_r($tree);
// use template to display navigation
$tpl = cSmartyFrontend::getInstance();
$tpl->assign('sektionsname', $sektionsname);
$tpl->assign('path',$path);
$tpl->assign('tree',$tree);
$tpl->display('sektionen.tpl');
?>