radiegtya / meteoris2

a Realtime Javascript Boilerplate base on Meteor Js Framework
MIT License
246 stars 46 forks source link

Select widget for collection names on Mugen Crudss generator. #77

Open brylie opened 9 years ago

brylie commented 9 years ago

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

radiegtya commented 9 years ago

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.

brylie commented 9 years ago

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

radiegtya commented 9 years ago

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

brylie commented 9 years ago

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

radiegtya commented 9 years ago

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