I want to display the label field in node.tpl, but I only could display the label and the content or just only the content.

Comments

steffenr’s picture

You should have a look at the http://drupal.org/project/devel module.
With the dsm-command you can dump the whole node variable in a readable way .
http://dl.dropbox.com/u/3062619/Screenshots/eief.PNG
In this case you could output the label of the field field_tags with the following code:

echo $content['field_tags']['#title'];

SteffenR

whatelse’s picture

Yes. That was it. It's now working.

Thank you