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');
?>
Fahrsicherheitstraining auf dem ADAC-Übungsgelände in Linthe, 23.9.23
Gruppe_.jpg
WhatsApp_Bild_2023-09-23_um_20.40.42.jpg
WhatsApp_Bild_2023-09-23_um_21.32.00.jpg
WhatsApp_Bild_2023-09-23_um_22.24.17.jpg
WhatsApp_Bild_2023-09-23_um_22.24.19.jpg
Sektion Berlin-Brandenburg