Paragraphs Library issues

Created on 11 October 2024, 4 months ago

When opening layout builder and trying to place paragraph blocks from the paragraphs library, there are problems a few problems:

  1. The configured admin title (pattern) is not visible because the title of the "from_library" paragraph is used, not the title of the reusable paragraph itself.
  2. The display mode introduced in Provide paragraph display mode block configuration Fixed doesn't work on the block configuration form, because paragraph library items have their own display mode configuration. The selection should spring from the linked reusable paragraph instead.
  3. The preview and view don't respect display mode either.
🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇳🇱Netherlands basvredeling Amsterdam

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

Merge Requests

Comments & Activities

  • Issue created by @basvredeling
  • 🇳🇱Netherlands basvredeling Amsterdam

    I believe MR 19 fixes all the paragraph library display issues. To test / review, please:

    • define a paragraph type that has multiple display modes
    • add a paragraphs field to a node type that uses above paragraph type
    • configure the display mode of the node type to use layout builder and make sure the paragraph blocks of the new type are selectable
    • enable the paragraph_library module
    • set the paragraph type to be promotable to the library
    • create a node with two paragraphs of the new type
    • promote one of these paragraphs to the paragraph library
    • edit the node's layout via the layout builder and check if you see a "Paragraphs" and a "Paragraphs from library" section
    • check if both paragraphs have a selectable display mode and display properly both when they're just content on the node or content from the paragraph library
  • 🇳🇱Netherlands tim_dj Netherlands

    Works good. I do see one deprecation notice:

    Deprecated function: Creation of dynamic property Drupal\paragraph_blocks\ParagraphBlocksLabeller::$paragraphStorage is deprecated in Drupal\paragraph_blocks\ParagraphBlocksLabeller->__construct() (line 83 of modules/contrib/paragraph_blocks/src/ParagraphBlocksLabeller.php).

  • 🇳🇱Netherlands basvredeling Amsterdam

    Fixed deprecation warning in 86a541c2.

  • 🇳🇱Netherlands basvredeling Amsterdam

    Part of release 4.1.2

Production build 0.71.5 2024