Bueno93 Posted November 23, 2010 Report Share Posted November 23, 2010 Hey guys, how can I remove the Route Map, shown on the Schedule Details page? It isn't coded in the template file. I also tried to set the width and height to 0px in the local config, but it didn't work. Does anyone has an idea? Regards Bueno Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted November 23, 2010 Report Share Posted November 23, 2010 look under core/schedules/schedules.php find this and comment out the line $this->render('route_map.tpl'); at the bottom. That should work public function details($routeid = '') { //$routeid = $this->get->id; if(!is_numeric($routeid)) { preg_match('/^([A-Za-z]{3})(\d*)/', $routeid, $matches); $code = $matches[1]; $flightnum = $matches[2]; $params = array('s.code'=>$code, 's.flightnum'=>$flightnum); } else { $params = array('s.id' => $routeid); } $schedule = SchedulesData::getScheduleDetailed($routeid); $this->set('schedule', $schedule); $this->render('schedule_details.tpl'); //$this->render('route_map.tpl'); } Quote Link to comment Share on other sites More sharing options...
Bueno93 Posted November 23, 2010 Author Report Share Posted November 23, 2010 Works perfectly. Thank you very much ;-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.