Hi, I have installed the cck_map module, It works. I can add marker and in the normal "node/X" page I can see the image map. Now I need to create my theme, but I have not understand how can I integrate the cck_map field into my theme. In the node load fields I see this:
field_map
Array ( [0] => Array ( [lat] => 45.4677456904392 [lon] => 9.20581340789795 [title] => Ufficio cliente [description] => Ufficio cliente Via Brrrr [image] => )
[maplat] => 45.4667524811 [maplon] => 9.20426845551 [mapzoom] => 15 [maptype] => G_NORMAL_MAP )
I have read that I need to use the theme_cck_map() functions but I have not understand how. Plz help me.
M.
Davide Michel 'ZioBudda' Morelli ha scritto:
Hi, I have installed the cck_map module, It works. I can add marker and in the normal "node/X" page I can see the image map. Now I need to create my theme, but I have not understand how can I integrate the cck_map field into my theme.
Solved :D
$field['widget']['label']= 'mappa'; $field['widget']['mapx'] = 400; $field['widget']['mapy'] = 300; $field['widget']['always_display'] = true; $field['field_name'] = 'field-map';
$output .= cck_map_field('view',$node, $field, $node->field_map,'','');
where the "map" of "field-map" is the machine's name that I have choise when I have created the field.
M.