Jump to:
| Project: | GMap Field |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello everyone!
Unfortunately I didn't found any information about this module for D7 or any other information.
Do you have any advice about similar by functionality module (just output gmap in node by Location module information - if I correctly understand that is main information about this module).
If we don't have any similar or near by functionality module, I will make porting to D7 (as I understand that will be just rewriting this module regarding new FieldAPI).
Location CCK module looks near by functionality but required using Location information without retyping this in Location CCK widget
This required for upgrading existing drupal site from D6 to D7.
Will be appreciated for any advice!
Thanks
PS. Sorry for my English
Comments
#1
Subscribing, greetings, Martijn
#2
Subscribing
#3
Found a solution:
- Add a new text format at http://localhost/sand7/admin/config/content/formats/add
- Name the filter 'GMap'
- Select
GMap Macro expanderas your filter input option- Add a longtext field to your the content type that needs the gmap field. Name that field: 'field_gmap'
- Create a quick custom module and set the default format to 'gmap' with hook_form_alter
function custom_form_alter(&$form, &$form_state, $form_id) {
switch( $form_id )
{
case 'content_type_node_form':
$form['field_gmap']['und'][0]['#format'] = 'gmap';
break;
}
}