I was banging my head against this for a while, just could not get a CCK address field to display in a view. Tried switching between location's views field and cck's views field, adding relationships, modifying the relationships in location.views.inc, and in the 'views data' inside location_cck_field_settings. No matter what I tried I could not get the address to display in a view from a CCK field.

The only solution I could come up with is adding the nid and vid to the location_instance record (see attached patch). Then:

  • added the Location: Node (or Node Revisions) relationship to the view's relationships
  • added the Location: Address Field to the view's fields.
  • selected the Location relationship in the Location: Address field
CommentFileSizeAuthor
location_cck_views.patch683 bytesq0rban

Comments

zach harkey’s picture

Status: Needs review » Closed (duplicate)

Marking as duplicate of this issue 382778, where there is an official fix.

q0rban’s picture

Ok, thanks! looks like I may have really screwed things up by doing this.. doh!