Jump to content

Recommended Posts

Posted

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

Guest lorathon
Posted

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');
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...