Project:Get Directions
Version:6.x-2.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I would like to start by appologising for what may seem the obvious.
I am still learning drupal, but would ask for some help.

Currently on the route page I have the map on the left and the route on the right. I would like the route to be under the map.

If you are to explain how I can do this in very simple terms if possible that would be great.

Thankyou very much

Comments

#1

Your theme should have a template.php, copy the function theme_getdirections_show() from getdirections.theme.inc to your template.php, renaming it appropriately, eg from theme_getdirections_show mythemename_getdirections_show where 'mythemename' is the name of your theme. Then change the following:

  $rows[] = array(
    array(
      'data' => '<div id="getdirections_map_canvas" style="width: '. $width .'; height: '. $height .'" ></div>',
      'valign' => 'top',
      'align' => 'center',
      'class' => 'getdirections-map',
    ),
    array(
      'data' => ($getdirections_defaults['advanced_alternate'] ? '<button id="getdirections-undo" onclick="getdirectionsundo()">' . t('Undo') . '</button>' : '') .'<div id="getdirections_directions"></div>',
      'valign' => 'top' ,
      'align' => 'left',
      'class' => 'getdirections-list',
    ),
  );

to
  $rows[] = array(
    array(
      'data' => '<div id="getdirections_map_canvas" style="width: '. $width .'; height: '. $height .'" ></div>',
      'valign' => 'top',
      'align' => 'center',
      'class' => 'getdirections-map',
    ),
  );
  $rows[] = array(
    array(
      'data' => ($getdirections_defaults['advanced_alternate'] ? '<button id="getdirections-undo" onclick="getdirectionsundo()">' . t('Undo') . '</button>' : '') .'<div id="getdirections_directions"></div>',
      'valign' => 'top' ,
      'align' => 'left',
      'class' => 'getdirections-list',
    ),
  );

What this does is rearrange the table so that it produces two rows with one datacell each instead of one row with two datacells.

Make sure you flush the theme registry when you have made the changes, the devel and admin_menu modules are helpful for this.

#2

Worked perfectly. Thankyou very much for the instructions, have tried a couple of other little tweaks using your guide and they also worked great.

Thankyou very much for taking the time to explain and show me this.
This is why I love the drupal community.