Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have a cck field called "field_firstname" and I want to use it as the title.
Reading the documentation I am under the assumpation that this is possible because it states :
$token = '[field_testnumber]';
if (empty($token)) {
return '[type]';
}
else {
return $token;
}
However, when I use my field it does not work.
Sorry for the stupid question as Im sure it is!
I read the issue queue and this person asks the same thing : http://drupal.org/node/256150
However, the answer of fago is not clear to me. Sorry !
Regards, Tom
Comments
Comment #1
BenMirkhah CreditAttribution: BenMirkhah commentedToken name for CCK fields need to specify the output option (raw or formatted), for example
you can access the CCK field_example using tokens [field_example-raw] or [field_example-formatted]
Comment #2
manish-31 CreditAttribution: manish-31 as a volunteer commented