We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Auto-increment field

Development and Programming

dirtydiva's avatar
dirtydiva
18 posts
11 years ago
dirtydiva's avatar dirtydiva

Hi All,

Was wondering if someone could help me with an issue I’ve run into.

I’m working on an animal rescue site and each animal has their own unique ID number. The problem is, the rescue wants to take the responsibility of updating the ID number out of the volunteer data entry person’s hands.

So what does this mean?

Well, each animal will have their own entry with the ID field being one of the channel fields. The ID itself needs to consist of three parts. One part to designate whether it’s a cat or dog, the second part is the year and the third part is an incremental number.

ie.: d-14-123 or c-14-123

I’ve checked out the auto-increment plugin but it’s very limited - it only applies incrementing to new entries, old ones are left in limbo and I don’t know how to add a year to it as a prefix.

Help? :D

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.