I need to theme my node.tpl.php but i cant figure out what variable to include in my node-services.tpl.php file to include the map and address?

Comments

UNarmed’s picture

You can print the map in your custom node.tpl.php with print $node->field_location2['0']['view']

superstar’s picture

Download and install the Devel module. This will tell you what the field variables are when you select dev loader.

UNarmed’s picture

Hey i tried that. When i want to print the address for example with with the below i just get a error and nothing below that line loads.

print $node->field_location2['0']['value']['address']['adminarea'];
GolDRoger’s picture

Status: Active » Closed (fixed)

Check this http://drupal.org/node/874718

I have explained here how to do this.

Greetings Luke