protected function onBeforeAdd() { // Hide main menu \JFactory::getApplication()->input->set('hidemainmenu', true); parent::onBeforeAdd(); }