WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
ATB (19)Crossroad (13)Electric bikes (136)Hybride bikes (85)Kids bikes (273)Mother bikes (19)Track bikes (27)Specials (23)
Simple question, maybe a difficult feature...Does anyone know if it's possible to create the number of products behind the menu item?
<?phpif(!isset($p)) return true;global $database;$data = $database->get_one("select count(page_id) from ".TABLE_PREFIX."mod_bakery_items where `page_id` = '$p' group by `page_id`");if($data) return ' ('.$data.')';return true;
<?php show_menu2(1, SM2_ROOT, SM2_START+1, SM2_ALL, '[li][a][menu_title] [[count?p=[page_id]]]</a>');?>
'[li][a][menu_title] [[count?p=[page_id]]]</a>'