meteoris2 icon indicating copy to clipboard operation
meteoris2 copied to clipboard

Select widget for collection names on Mugen Crudss generator.

Open brylie opened this issue 10 years ago • 5 comments

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

brylie avatar Jun 17 '15 08:06 brylie

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.

radiegtya avatar Jun 18 '15 09:06 radiegtya

Would it be possible to check the schema for expected field names?

brylie avatar Jun 18 '15 09:06 brylie

I Still don't know about that. Need some research, the key was did collection2 able to do that?

radiegtya avatar Jun 18 '15 09:06 radiegtya

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).

brylie avatar Jun 18 '15 09:06 brylie

currently not, and that maybe the trick to do that. Currently I am also creating Meteoris CMS and using those trick to do that.

radiegtya avatar Jun 19 '15 02:06 radiegtya