Problem/Motivation
Our projects never use the default view mode for entity types. Our "default" would generally be "full." As such, whenever we try to use the Layout Paragraphs Builder (Experimental) formatter, there is an option to choose the edit view mode only. The view mode shown to the end user is always default.
Proposed resolution
My suggestion is to allow setting the displayed view mode, like the other Layout Paragraphs formatter allows.
Remaining tasks
Review and test the supplied patch
User interface changes
This will add a "View Mode" selector to the widget settings.
Comments
Comment #2
swilmes commentedComment #5
sethhill commentedI added to the patch that @swilmes posted, displaying the view mode and preview mode by name. I also added the view_mode to the config schema and ensured that phpunit tests are still successful. This looks good from my perspective.
Comment #6
sethhill commentedComment #8
sethhill commentedComment #9
naveenvalechaThank you for the PR. We are using PR on a big customer website and its working fine for us.
RTBC +1
Looking forward to get this in soon :)
Comment #11
naveenvalechaThanks for merging it
Marking this as fixed.
Looking forward to see you in #3417765: Large modal exceeds viewport height without scrollbar = actions unreachable
Comment #12
sethhill commentedComment #13
james.williamsWhat is the difference between the
view_modeandpreview_view_modesettings please? I only see the originalpreview_view_mode(andform_display_mode) making any difference. It looks to me as thoughpreview_view_modemakes the idea ofview_moderedundant, in which caseview_modeshould probably be removed?