I want to create a field that generates a running number. This number will be automatically generated everytime I create a new item and has to be unique.
Any examples of how this could be implemented? I don't want to use the Sitecore item ID for this.
You can implement a custom token and just use your field. I think this is going to be the cleanest solution for your problem. You can add your custom algorithm to guarantee that the IDs are unique or you can just use Guid.NewGuid()
. You can check how to create custom tokens in this blog post.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments