Paragraph type buttons missing

Created on 11 May 2023, about 1 year ago
Updated 16 February 2024, 5 months ago

Problem/Motivation

Steps to reproduce

Install the following versions:
Paragraphs: 1.15
Paragraphs Features: 2.0.0-beta2
Paragraphs Editor Enhancements: 2.1.0-alpha1
This gives Drupal 10 compatibility

Set paragraph widget to modal form and add in between enabled with 3 number of add in between links.

Edit a page with a paragraph field with these settings and a single button appears to add paragraphs in between instead of specific buttons for some and a general for the rest.

Proposed resolution

None

Remaining tasks

Fix

User interface changes

Re-introduce the paragraph type buttons in the 'in between' section.

API changes

None

Data model changes

None

🐛 Bug report
Status

Closed: outdated

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom Rory Downes

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

Comments & Activities

  • Issue created by @Rory Downes
  • 🇬🇧United Kingdom Rory Downes

    Until this is resolved to get to Drupal 10 compatibility, I regressed to the following version:
    Paragraphs Features: 8.x-1.16
    Paragraphs Edit Enhancements: 8.x-1.8

    I wrote Drupal 10 patches for these versions which I attach for convenience of anyone else in this predicament.

    The Paragraphs Features patch also removes the text split feature as that will not work with CKEditor5 as noted in issue https://www.drupal.org/project/paragraphs_features/issues/3324781 .

    NOTE: These patches do not resolve this issue, just get around it.

  • 🇬🇧United Kingdom Rory Downes

    The Paragraphs Edit Enhancements D10 upgrade for the 1.8 release was bugged. I attach a new version.

  • 🇬🇧United Kingdom Rory Downes

    Now I realise that Paragraphs EE is not compatible with Paragraphs Features 1.16 so I downgraded to 1.12 and re-rolled the features patch to D10 from that release and attach that!

  • Status changed to Postponed: needs info about 1 year ago
  • 🇩🇪Germany stBorchert

    Uhm, I think you mixed some things up here. Paragraphs EE already runs on Drupal 10. See 📌 Automated Drupal 10 compatibility fixes Fixed .
    And you need to install Paragraphs Features 2.x (compatible to Drupal 10) instead of 8.x-1.16 (compatible to Drupal 9).

  • 🇬🇧United Kingdom Rory Downes

    Hi stBorchert,
    Sorry for the confusion but if you take a look at the ticket description you will see that I used Paragraphs Features: 2.0.0-beta2 & Paragraphs Editor Enhancements: 2.1.0-alpha1 initially. With these versions I get the bug that I reported.

    My comments were my attempt to get around this by going back to versions that I believed worked and creating my own compatibility patches so that I could have working versions that were compatible.

    As it happens even that does not work as I still get the bug where the new paragraph gets inserted at the end and also the modal (both normal and off-canvas) is lacking images and names for each paragraph type listed.

    Let me know if you need any more info than I reported to simulate this bug.

    Many thanks

    Regards Rory

  • Status changed to Active about 1 year ago
  • 🇩🇪Germany stBorchert

    Please try using 2.1.x-dev, it includes some fixes for issues in the alpha version. The off-canvas dialog is broken in this version.
    We are currently working on a complete redesign of the popup and off-canvas (version 2.2.x) and 2.1.x will not be supported anymore when the redesign is ready for release.

  • 🇬🇧United Kingdom Rory Downes

    Thanks stBorchert. The 2.1.x-dev branch does make the buttons appear and work which is a great improvement. As you say the off-canvas version is still broken.

    Is there going to be a new alpha version of 2.1 whilst we wait for 2.2 and the off-canvas rework competion?

    Regards Rory

  • Status changed to Fixed 11 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed 11 months ago
  • 🇬🇧United Kingdom Rory Downes

    Unfortunately, this is no longer working. I am now using the following:
    Paragraphs 1.15
    Paragraphs Features 2.0.0-beta2
    Paragraphs EE 2.1.0-alpha2
    I also re-tried the 2.1.x-dev branch and it also no longer works.

    Regards Rory

  • Status changed to Active 11 months ago
  • 🇩🇪Germany stBorchert

    Hey @Rory Downes.
    Try using version 10.0.0 if you run Drupal 10. Which theme do you use?

  • 🇬🇧United Kingdom Rory Downes

    Hi @sBorchert,
    We are using Claro 9.5.9 for administration theme. Do you mean it will fail on Drupal 9 but work on Drupal 10 or do you mean specifically 10.0.0 rather than the most recent 10.1 that I am trying to upgrade to.

    So far I have not actually upgraded to D10 but doing the module upgrades on D9.5.
    Regards Rory

  • 🇩🇪Germany stBorchert

    Hey.
    If you are still on Drupal 9, you'll need to install Paragraphs Editor Enhancements version 2.1.*.
    I've tried a fresh install with Paragraphs 1.15, Paragraphs Features 2.0.0-beta2 and Paragraphs Editor Enhancements 2.1.x-dev and it works without any problems.

  • 🇬🇧United Kingdom Rory Downes

    Hi @stBorchert,
    I have tried these combinations (see comment #13) but not a fresh install, so there must be some other dependency that I am hitting in the site were I am seeing this issue.

    I will come back on this ticket when I get more time to investigate this. For now, we are also using Paragraphs Edit vr 2.0.0 (upgraded from 2.0-beta1), so I am guessing this is most likely culprit. The only other paragraphs related module is Bootstrap Paragraphs (we use a custom bootstrap based main theme) but I am presuming this is all display related rather than edit forms.

    Regards Rory

  • 🇫🇷France lilyanah_cz Paris

    Hi,

    I'm experiencing the same issue since I updated my website :

    - paragraphs 8.x-1.16
    - paragraphs_ee 2.1.0 (also tryed 2.1.x-dev)
    - paragraphs_features 2.0.0-beta3

  • 🇩🇪Germany stBorchert

    Could you please test using the latest development version of Paragraphs EE?
    If this is not working, are you able to reproduce the error on simplytest.me?

  • 🇷🇴Romania cslevy

    I encountered the same issue. The In between buttons are not showing. I was able to track down the issue.

    Core: Drupal 10.1.5
    Paragraphs: 1.16.0
    Paragraphs EE: 10.0.2
    Paragraphs Feature: 2.0.0-beta3

    With clean install everything working for me as expected, but there is a ticket in core ( https://www.drupal.org/project/drupal/issues/2118743 🐛 Twig debug output does not display all suggestions when an array of theme hooks is passed to #theme Needs work ) which resolves some suggestion issues (I need it to be able to use suggestions for views), breaks this functionality.

    I'm not sure, if the patch from the ticket is wrong, or if something in this module is wrong, but the wrong template is used, if the patch is applied (paragraphs-add-dialog.html.twig is used instead of paragraphs-add-dialog--categorized.html.twig, because they ore in a wrong order.)

    I managed to fix the issue locally with:

    function hook_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
      if ($hook == 'paragraphs_add_dialog__categorized') {
        $suggestions[] = 'paragraphs_add_dialog__categorized';
      }
    }
    
  • Status changed to Closed: outdated 5 months ago
  • 🇩🇪Germany stBorchert

    Closing this due to lack of activity and no further reports.

Production build 0.69.0 2024