Preset a paragraph type

Created on 12 October 2022, about 2 years ago
Updated 5 December 2023, 12 months ago

Problem/Motivation

The paragraphs_inline_entity_form offers a better UX than the bare EntityForm. It would be good to be able to replace use cases where the paragraph type is preset, and jump over the paragraph selector step directly to the inline form.

Proposed resolution

On the Widget config screen, instead of replacing all paragraph types just add an option for "(Paragraph selector)"

💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

miiimooo Europe

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 Kingdom marcelovani London

    @miiimooo The implementation suggested would jeopardise the purpose of this module that allows the user to select the Embed type when they click on the Embed icon i.e.

    The entity browser will open

    To achieve what you are proposing, I suggest that you create new Entity Browser in /admin/config/content/entity_browser and configure the Widget for each Embed type

  • miiimooo Europe

    Thanks for reviewing @marcelovani . I'm not sure I made it clear enough what this simple patch achieves. In addition to what the module does so far, that it allows selecting from a list of paragraph types, it makes it possible to preset a paragraph type in an entity embed button in the editor. This works really well. The change is also minimal but maybe needs better documentation.

    Use case 1 (original)


    this is still supported and works like before

    Use case 2 (added by patching)


    This is the new functionality.
    When using this embed, ckeditor jumps directly to the entity add form of the bundle

    Okay, the title could be improved..

  • Status changed to Closed: works as designed 12 months ago
Production build 0.71.5 2024