CCK

Display a GMap of a Referenced Location

If you have many events that are at the same location, instead of adding the location information to each event, you can setup one location that is referenced by each of your events.

When you display a node reference, you have the options to display as a title, teaser or body. In order to generate a Google Map, you have to create a View that will load the reference to your Location and display those fields as a GMap

Theming a Specific CCK Field

The display of CCK fields is handled by the file content-field.tpl.php which is in the folder sites/all/modules/cck/theme. To override the display of a specific CCK field, the system will look for the format content-field-field_name.tpl.php in your theme directory.

Assuming you have a field named 'files', the name of your override would be content-field-field_files.tpl.php. If you're not sure of the field name go to admin/content/types and select the Fields tab - which will give you an overview of all your CCK fields.

Tags: