Could we help you? Please click the banners. We are young and desperately need the money
The following was tested in Joomla 2.5
In order to fetch the current submenus' parent menu (item) name add this to your templates' index.php file:
$mydoc = JFactory::getDocument(); $title = $mydoc->getTitle(); $app = JFactory::getApplication(); $this->setTitle( $app->getCfg( 'sitename' ) . ' - ' . $title ); //sets the page title $menu = &JSite::getMenu(); $active = $menu->getActive(); $pageName = $active->title; //the current pages' name $parentId = $active->tree[0]; $parentName = $menu->getItem($parentId)->title; //the current pages' parent menu name