I have applied the patch in http://drupal.org/node/427432#comment-2251824, in order to get location cck data to display. However is there a way to format the output?

I have already overwritten location.tpl.php to include the output for when the node is being displayed, that works great. But I have now created a view which lists all the nodes and would just like the Location Name in this list, not the entire address. In the views window there is a display format select-box with only one option, "Default", is there a way to extend this? (Please see the attached image if unsure)

Thanks in advance,
Alex :D

CommentFileSizeAuthor
Location CCK View Display Format127.24 KBAlex Latchford

Comments

Alex Latchford’s picture

Project: Location Views » Location
Version: » 6.x-3.x-dev
rooby’s picture

Status: Active » Fixed

The best way to do this would be to use the individual Location: Name field instead of the Content field.
To do this add a relationship to your view there should be one in the Content section of the relationships for your cck location field.

Then add the Location: Name field and select your relationship for the "Relationship" option.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.