Posted by buckley on September 15, 2009 at 10:57pm
Jump to:
| Project: | Automatic Nodetitles |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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 :
<?php
$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
#1
Token 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]