Select widget for collection names on Mugen Crudss generator.
When generating a schema with Crudss, it would be helpful to have a select menu containing all existing collections (in the "Belongs to Collection" column). This would prevent users from entering the collection name incorrectly.
Tasks
- [ ] Determine how to fetch field names from collection (or schema)
- [ ] Generate a list of field names (array)
- [ ] Populate a select input with the label/field name for each field
this will be awesome. but it will be hard work because we need to fetch every fields in collection that I still don't know how to do that. Another thing that we must make sure that fields exist and anything else maybe happen. But nothing is impossible.
Would it be possible to check the schema for expected field names?
I Still don't know about that. Need some research, the key was did collection2 able to do that?
Does Mugen store field definitions in any collection? E.g. Drupal has a 'collection' of field names that can be re-used across content types (such as 'title', 'author', etc). We could store all field definitions inside of a collection, with metadata about their associations with content types (e.g. 'blog post', 'article', 'recipe', etc).
currently not, and that maybe the trick to do that. Currently I am also creating Meteoris CMS and using those trick to do that.