Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can anyone let me know the easiest way to set my "ticket" content type up so that the node title is an increasing ticket number?
ex. 000100
ex. 000101
ex. 000102
increasing by 1 for every creating of content from the specific "ticket" content type.
If this is not possible I also was willing to just use the Node ID as the ticket #.
I already tried putting #[node:id] in the box and this isn't working. The title just ends up being #
Comments
Comment #1
ctalley5 CreditAttribution: ctalley5 commentedsubscribe - looking to do the same
Comment #2
BasM CreditAttribution: BasM commentedLike I said http://drupal.org/node/1005224#comment-4920700 here
I used a database table to set the (in my case) company number.
And run a query to fetch and update it.
The bad part I'm still struggeling with is the script running twice.. so if you don't mind 2 4 6 8..etc. It works fine ;)
Comment #3
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commented