I'm having trouble with location cck fields in views. In the views fields section, you can't add location cck fields (zip, state, etc.). It just gives Content: Location which doesn't help. I need to be able to add Latitude and longitude from the cck fields. Is there a patch do this? Or is there a way to use the cck fields for the node location?

Comments

Anonymous’s picture

I may be understanding your problem incorrectly but ...

If you add a CCK location field to a content type, a full Location data entry panel is there when you create a new node. It contains the following:

Location name:
Street:
Additional:
Country:
Latitude:
Longitude:

phayes’s picture

I believe the request is specifically about Views integration. Individual sub-fields are not exposed for Location CCK fields as they are for Node Location fields.

zzolo’s picture

Status: Active » Postponed

Sorry, wrong thread. Need to close tabs. :)

zzolo’s picture

Status: Postponed » Active
summit’s picture

Subscribing, greetings, Martijn

phayes’s picture

FYI - getting this working would allow us to map LocationCCK fields with openlayers: http://drupal.org/node/698004

phayes’s picture

Also, here is a work-around: http://geomemes.com/node/78

Jerome F’s picture

I have the same request. With location node the location fields in views are exactly what I need. But there doesn't seem to be the same fields associated with CCK locations.

Jerome F’s picture

Oh I get it, there's no difference between location fields that are created with cck location and node location. Then I can use the fields in views the same way. For me it's ok.

szy’s picture

@Jerome, could you please share with us a sample view
working both with Location and Openlayers?

Thanks,
Szy.

ankur’s picture

Status: Active » Closed (fixed)

Closing due to lack of activity.