Closed (fixed)
Project:
Location
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2011 at 12:48 UTC
Updated:
28 Mar 2011 at 12:41 UTC
For cck locations, the implementations of hook_field_formatter_info() and hook_field_formatter_view() still need completing.
These should replace the cck formatter theme functions.
Comments
Comment #1
NathanM commentedSubscribing.
Comment #2
rooby commentedLocation cck formatters have now been ported.
http://drupal.org/cvs?commit=499650
Gmap related formatters are not working but I still have to track down that issue and see if it is on this end or the gmap end.
Comment #3
acarpio commentedIn case this can help to figure out about the Gmap formatters:
after enabling "Location map block", maps are displaying, one for the block and one for the Location CCK node.
with no block enabled, the node is displaying all the CCK information but the map, with this message: "Javascript is required to view this map."
On another hand, in addition to set max. numbers of node location to 0 (in order to make CCK location able to save) I had to disable the display of node locations when editing the content type, if not is duplicating the display of the information in the node. Is this the way to go?
Comment #4
rooby commentedThis is because the process of the location cck field displaying the map (using theme_gmap()) doesn't seem to be adding the required javascript.
But when the other block is enabled it loads the gmap javascript correctly and so it works for all maps on that page.
That is what makes me think it is either a problem with the theme_gmap() function in the gmap module or the way that theme_gmap() works has changed so the way it is called from the location module needs to be changed.
I believe this issue has been around for a while and is also in the D6 version.
disabling the display of node locations should be a suitable solution.
I might also look at making the code that displays the node locations check the max locations setting and if it is zero don't display anything.
Comment #5
agence web coheractio commentedsubscribe
Comment #6
rooby commentedFor the sake of making things easier for people to find, marking this as fixed because the title of this issue is fixed (see #2).
The map formatters not working is technically a different issue.
Comment #7
rooby commented#1089344: Location cck field formatters that use gmaps don't work properly is now for the map formatters bug.