After updating to version 8.x-1.4 (which I presume to be identical to 8.x-1.x-dev due to the release date), I cannot choose any custom Paragraph view modes when using the Form Display edit form for a Paragraph type. The only available option is "Default" despite having many custom view modes created.

If I downgrade to 8.x-1.3, then I can see my custom view modes (and older set values are still in place, thankfully!).

CommentFileSizeAuthor
#3 only-default-view-mode-debug.mp42.59 MBsayco

Comments

mjchadwick created an issue. See original summary.

mjchadwick’s picture

Title: Paragraph instance's Available view modes only lists "Default" » Paragraph instance's "Available view modes" only lists "Default"
Issue summary: View changes
sayco’s picture

StatusFileSize
new2.59 MB

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

sayco’s picture

Status: Active » Postponed (maintainer needs more info)
mjchadwick’s picture

@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!

sayco’s picture

Status: Postponed (maintainer needs more info) » Fixed

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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.