I have a 'song' content type. Within the content type I have the cck text area called 'Artist Info' or field_artistinfo. I also have an 'Artist' (field field_artist) field as well.

For the Artist Info field, I would like to have the default value display as

"Artist Info currently unavailable for $field_artist." using the PHP code box But am having major difficulty.

Can someone tell me the syntax to use to accomplish this?

Comments

sapark’s picture

Install the devel module http://drupal.org/project/devel to see the names of your fields. CCK might be something like this $node->field_artist[0]['value'].