params->def( 'height_auto' ) ) { $this->wrapper->load = 'onload="iFrameHeight()"'; } else { $this->wrapper->load = ''; } // Get the page/component configuration $params = &$mainframe->getParams(); $menus = &JSite::getMenu(); $menu = $menus->getActive(); // because the application sets a default page title, we need to get it // right from the menu item itself $document->setTitle( $params->get( 'page_title' ) ); $this->assignRef('params', $params); parent::display($tpl); } }