Can a cck field be used at creation time

buckley - September 15, 2009 - 22:57
Project:Automatic Nodetitles
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

 
 

Drupal is a registered trademark of Dries Buytaert.