OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Multiple Fields Design Issue (Flaw maybe)

Open JoshTango opened this issue 5 years ago • 17 comments

This issue is regarding the fields feature when defining a content type. I will come at this from the perspective of the content picker, but it applies to all fields I suspect.

I have been researching other CMS platforms like Drupal 8 for example. In Drupal 8 you can decide 1 or a specific number or unlimited when you add a field. See the attached diagram. If you choose more than one you are presented with an add another item button as shown in the other attached diagram. This gives every field the ability to act like a bag/list/collection or whatever you want to call it.

I think you have a design flaw possibly. I think you should remove the multiple entity ability in the content picker for beta 3 release. Only have it pick one entity only for now. In time you should implement a 1 or specific number or unlimited ability for ALL fields not just the content picker. This should be asked for when on the screen when you first create the field. You can code this generically for all of them. You can create one UI for all field types. It would present just a list of title/value of the field and allow you to order them by moving the rows up or down like the UI you use for Bag right now.

Now on another related topic out of scope of this issue is the template for each field. In Drupal 8 they call it a teaser. It’s a classic Listview demo scenario where you have a smaller template of the entity in the listview and when you click it you go to the details page of the entity. Drupal allows you to pick which fields of the entity show up in the listview template/teaser and which ones show up in the detail page. For example, you might want to pick the short description for the list view template and pick long description for the detail page.

addanother unlimited

JoshTango avatar Oct 09 '18 20:10 JoshTango