Hi there. I am looking to create a simple CCK field for serial Number. The field would not be editable in the node create screen but would, when the form is submitted, find the next number and assign it. If the node is later edited... it cannot be changed by any user. I would also like the ability to define the number that numbering starts on when the field is used.

After developing this... I would be happy to add it to drupal.org for others to use.

--
Thanks.

Comments

zeta ζ’s picture

http://drupal.org/project/type_local_nids
___________________
Search is your best friend…

keesee’s picture

For those of you who needed to start numbering at a specific number for a node type (4000000 in my case) here's how you can achieve this.

Once the module is installed, you need to change a recode in the DB. find the "luid next" table and change the number for your node type (part in my case) to what ever you would like to start numbering at. (I changed it to 4000001).

Thanks Zeta.

--
Jimmy R. Keesee [CorpX]

zeta ζ’s picture

I like finding modules that do a needed task; it is how I find out what is out there – If I don’t have a task in mind, trawling though the zillions of contributions, tends to numb my brain.
___________________
It’s in the detaιls…

demonstration portfolio