Does not work with Layout Paragraphs

Created on 13 February 2023, over 1 year ago
Updated 15 January 2024, 9 months ago

Problem/Motivation

Summary = a paragraph type (which consumes a ui_patterns layout) behaves as expected in CKEditor, but vanishes on save. Gone from the DOM.

I'm not sure if this is a ui_patterns issue or a layout_paragraphs issue. According to this documentation the two should work together.

Steps to reproduce........

  1. create a ui_pattern eg Modal
  2. test that it works by creating a content type 'Test Modal'
    1. add the fields to the content type
    2. set the layout for the content type as Modal
    3. create a node of type Test Modal
    4. save. It displays the modal button and clicking it opens the modal message. Pass
  3. Crate a paragraph type and create the fields
  4. because we have ui_patterns_layouts module, in manage display we can select the layout 'Modal'
  5. in a different content type (eg Test) add an 'entity reference revisions' field
  6. call it 'components' or some such
  7. edit the field and allow Modal to be used in this content type
  8. select Layout Paragraphs widget in Form Display and Manage Display
  9. at last we can create a node of type Test
  10. add a Section and pick a layout
  11. inside the section, add a Modal
  12. we get the Modal form asking us to enter data in the fields
  13. save
  14. the modal is now showing in the text editor window
  15. save the node
  16. modal is gone. It's not in the DOM at all.
  17. on going back into Edit, it is gone from there too

There are couple of settings which I thought might make a difference but don't. In Manage Form Display, the Layout Paragraphs Widget has a 'Maximum nesting depth': setting this as greater than 0 did not help. There is also 'Require paragraphs to be added inside a layout' which also made no difference.

Layout Paragraphs 2.0.2
UI Patterns 1.5
Drupal 9.5.3

🐛 Bug report
Status

Active

Version

1.5

Component

UI Patterns Layouts

Created by

🇬🇧United Kingdom nigelwhite Marsden

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024