Default view mode always appears in the list even if you did not choose it. This item is not necessary always and user should be able to set another default view mode otherwise he should set view mode every time.
http://prntscr.com/hwc53q
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screen Shot 2018-03-29 at 11.23.48 AM.png | 69.24 KB | joshua.boltz |
Comments
Comment #2
mikelutzThis was done in an effort to preserve compatibility when enabling this plugin on a content type with existing content. I wanted it to be clear in the entity edit form that the original view mode was being used as the default, and not force someone to change it on edit.
It's important to note that it isn't the default view mode that's always included, it's the view mode you are overriding. So if you wanted the default to be gallery image in your example above you would select gallery image as the view mode to override, and set gallery image as the view mode for the paragraph field in your entity. You would then not have 'default' as an option, and you would get the functionality that I believe you are looking for.
That being said, I'm open to improving the UI. If setting an explicit default is easier to understand, I can look into it. It would save people from the extra step of having to override view mode to change from default.
Comment #4
joshua.boltz commentedI second this UI improvement.
I think if you de-select `Default` from the select list and save, there are 2 problems:
1) When you go back to the form, the `Default` is yet again selected
2) When adding a paragraph item and clicking the Behavior tab, it should default to the first one in the list of ones you selected instead of `Default`. If you're using this module and it's enabled for an entity type, why should `Default` even be an option?
Comment #5
mikelutz@joshua.boltz I don't believe your screenshot is from the latest -dev version. I've modified the configuration form to allow you to choose the default view mode to change to if none has been selected (And I'm sorry, but the word 'default' appears in this thread in several different contexts, so it gets confusing)
As I tried to say above, you can deselect Default (as in the view mode) as long as you aren't overriding Default (as in the view mode). In the alpha1, I required the overridden mode to be available as an option so that we would have a default (as in automatically selected option) to use if no mode was explicitly set.
The latest dev still requires a default (as in automatically selected option), but you can now change what that option is.