I am working with the plugins "struct" and "bureaucracy" and I am planning a task management system.
A struct-field "task.ID" should be filled with an automatically ascending number (primary key for the tasks).
In bureaucracy forms there is the "number field", where you can define an incremental counter with "++".
When creating a new page and filling the struct data, I use the "struct_field" within the fieldset for data entry.
<form>
action template ...
fieldset "Task"
struct_field "task.ID" @
...
But this way I have to enter the ID manually.
Is there another way I can create/use the function of an auto-incrementing number in the context of struct fields?
I could create a page via Bureaucracy that has the number as the page name and title. But how do I get this number automatically into the ID field of the struct table?
Can someone give me a hint or a solution?
Thanks in advance
Jörg