How to get the name of the current page’s parent from the menu (i.e., get the title of the page one level up) in Joomla 1.5:
$menu = JSite::getMenu(); $parent = $menu->getItem($menu->getActive()->parent)->name;
$menu->getActive()->parent returns the id of the parent, which is why you then have to pass that id to $menu->getItem([id])->name. It would be nice to have a parent() function so that you would only need $menu->getActive()->parent()->name, but I quibble.
Photo: University of Washington Libraries Digital Collections, via Flickr Commons

With Arianna Huffington’s recent article “
Setting up Apache in Ubuntu and can’t get mod_rewrite to work? You’re sure the module is enabled and a simple test rewrite rule, that you’re positive is correct, is in your .htaccess file?