No way to add existing library item to Paragraph field

Created on 27 July 2021, over 3 years ago
Updated 20 September 2024, about 2 months ago

Problem/Motivation

It does not seem possible to add an existing library item to a Paragraphs field:

  • The "Paragraphs Legacy" widget does not provide a means to add an existing item, nor promote an item to the library.
  • The "Paragraphs (stable)" widget provide a means to promote an item to the library but does not provide any way of selecting an existing item.
  • The "Inline Entity Form - Complex" widget lets you configure it to allow using a library item, but when one is selected in the entity browser popup it gives the error "The entity must be of type paragraph." making this unusable.

This make the entire library system unusable.

Steps to reproduce

  • Create a paragraph type and allow it to be used in the library. Add some fields to it.
  • Add a paragraph (entity reference revision) field to a content type.
  • Configure the node field to use the "Paragraphs (stable)" widget.
  • Create a node, add an item to the paragraph field, promote it to the library, save the node.
  • Create another node, try to add the item created above to the paragraphs field.
  • Try the different field widgets.

Proposed resolution

The "Paragraphs (stable)" widget needs a way of selecting an existing item.

Remaining tasks

Extend the Paragraphs Library module so that the "Paragraphs (stable)" widget can allow selecting existing library items.

User interface changes

The "Paragraphs (stable)" widget would have an option to use items from the library.

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Module: Library

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States naidim

    I've enabled promoting to library, I've set "From Library" as a paragraph option for the Entity reference revisions field type for the paragraph.

    When I click "Add from library" button, I get a paragraph with a "Select reusable paragraph" button. I click that button and it opens a modal window to allow selection. This works for Administrator, but I cannot determine the correct permission for non-administrators. I've tried all the paragraph and paragraph library permissions to no avail.

Production build 0.71.5 2024