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
| Comment | File | Size | Author |
|---|---|---|---|
| Location CCK View Display Format | 127.24 KB | Alex Latchford |
Comments
Comment #1
Alex Latchford commentedComment #2
rooby commentedThe 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.