Closed (fixed)
Project:
Paragraph View Mode
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2020 at 16:00 UTC
Updated:
22 Jul 2020 at 06:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mjchadwickComment #3
sayco commentedHi in order to help you with your issue I will need some more details regarding your set up.
I have changed a little bit a core mechanism for picking the view modes. Right now you are only able to display view modes which are enabled on this specific paragraph type. Do you have enabled more than a default one?
I did a lot of tests before releasing this particular version, and everything was working perfectly fine to me on many different setups.
I recorded a video from debugging, to present you how this is working for me locally.
Comment #4
sayco commentedComment #5
mjchadwick@sayco That video was very helpful, so thank you.
Is the requirement to enable view modes on the "Manage Display" section before they appear in the "Manager Form Display" section new? It's like the functionality that used to be in the "Manage Form Display" gear options has moved to the bottom of the "Manage Display" section. I can now see how to make this work, so thanks!
Comment #6
sayco commentedWell as far as I remember, on the "Manage Form Display" there was always a section to enable a custom form modes and for the "Manage Display" there was a section to enable custom view modes.
As I already mentioned, I've changed the mechanism of getting the list of available view modes in 1.4 version. Previously it took all the view modes defined in /admin/structure/display-modes/view for Paragraph content type - and it wasn't great, because if some particular view mode was not enabled on specific paragraph type, then the fields weren't ordered on "Manage display" and it wasn't styled properly (optionally themed in twig template). Because of that reason I came with an assumption that it is better to build the options only from the enabled view modes.
Anyway, I'm very glad that it helped you with solving your issue! I'll also think of a better field description to inform that the list should be built from enabled view modes only.