Open zaneadix opened 5 years ago
The challenge here is reading the number field from every other entry in the collection, data that widgets don't currently have access to. This should be made possible, though.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The other challenge is when using the editorial workflow, and multiple unpublished entries have an incrementing field, its value really needs to be set at publish time (#1348).
subscribing... currently converting our site with about 1400 pieces of different content, and everything is key'd via auto-incrementing IDs in the URLs.
I can't ask the admins to "pick a number" in the CMS. Doh.
Right now, I think I am going to have to fake a lot of the numbers in loops with int++
. Thing is, some items are hidden and the numbers are consecutive.
Is your feature request related to a problem? Please describe. Auto-incrementing number fields. As items are added to a collection the default number value is incremented.
Describe the solution you'd like Number widgets could have an
auto-increment
parameter?Describe alternatives you've considered If it's possible to implement this as a custom widget, I'd be more than happy to do that but I've been digging through widget props and some source code an am not sure if there's anything I can leverage to accomplish this.
Additional context I'm using netlify-cms to manage a podcast and need episode numbers. I was going to just set them in the rss feed as I iterate over the episodes (just set the index) but this wouldn't be reliable in the case that an episode gets deleted at some point