- // Load the base (XML) template for generating menus
- $this->getTemplateInstance()->loadMenuTemplate('base_menu');
+ // Load the menu template for all
+ $this->getTemplateInstance()->loadMenuTemplate('generic_menu_entries');
+
+ // Get the 'page' from request instance
+ $page = $this->getApplicationInstance()->getRequestInstance()->getRequestElement('page');
+
+ // Load the menu template for this page
+ try {
+ $this->getTemplateInstance()->loadMenuTemplate($page . '_menu_entries');
+ } catch (FileIoException $e) {
+ // @TODO Should we log it here? We should, because it will be silently ignored.
+ }