Computed Field module does not provide Token to Auto Nodetitle module

asb - February 10, 2009 - 23:16
Project:Automatic Nodetitles
Version:5.x-1.2
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

as a follow up to this and this issue, I'm crossposting this as a feature request: I'd like to utilize the output of an "computed field" to automatically generate a node title. In my setup, there are not "computed field" tokens available for "auto nodetitle".

Computed Code:

if (!empty($node_field[0]['value'])) {  // the node is not new
  return $node_field[0]['value'];
}
else {  // the node is new
  $count = db_result(db_query("SELECT COUNT(*) from node WHERE type = 'mediathek'"));
  $node_field[0]['value'] = $count;
}

According to Fago, a token is supposed to be available for automatic title generation through Automatic node titles. So this might be a bug.

Generating a node title with data from computed field might be problematic since the field's value seems to be generated during the node save process. If I understand the changelog correctly, this should be handled in auto_nodetitle 5.x-1.2:

#348860 backported from d6: Also operate during node submit.

I have no idea which module is supposed to take care of this; please advise if this an issue of Auto nodetitle, Token, or Computed field (or anything else).

Thank you! -asb

 
 

Drupal is a registered trademark of Dries Buytaert.