Jan
05
2009

Drupal CCK Autonumber Field

In a Drupal site you may have a content type that needs an auto number to be generated that auto increments on each new node of that type.

To do this install the computed field module

http://drupal.org/project/computed_field

Then create a new field of the type computed field and add the code from the following URL

http://drupal.org/node/313110

Written by Pete in: Drupal,php |

2 Comments »

  • A better way of doing this would be by using the serial module

    Comment | 14/01/2010
  • Thanks Wesley, the Serial module looks to be a good new module.

    Comment | 14/01/2010

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes