Bootstrap Paragraphs accordion paragraph type does not install correctly.
Problem/Motivation
When installing Bootstrap Paragraphs module, there are no active fields when managing form display or managing display, see bp-accordion-manage-display.png screenshot.
There no error in log messages.
Steps to reproduce
- Install Bootstrap Paragraphs module
- Go to /admin/structure/paragraphs_type/bp_accordion/form-display or /admin/structure/paragraphs_type/bp_accordion/display
- See both 'No field is displayed'
Install Bootstrap Paragraphs module
After some research I found that there are no entity form display and not entity view display for bp_accordion, see entity-form-display-conf-export.png and entity-view-display-conf-export.png screenshots.
And when I try to import single configuration core.entity_form_display.paragraph.bp_accordion.default.yml after core.entity_view_display.paragraph.bp_accordion.default.yml I get the following error:
Configuration core.entity_view_display.paragraph.bp_accordion.default depends on the field.field.paragraph.bp_always_show configuration that will not exist after import.
Proposed resolution
After replace config dependency field.field.paragraph.bp_always_show by field.field.paragraph.bp_accordion.bp_always_show into core.entity_form_display.paragraph.bp_accordion.default.yml and core.entity_view_display.paragraph.bp_accordion.default.yml, then installing Bootstrap Paragraphs module on a fresh Drupal installation, all fields are active when managing form display or managing display.
| Comment | File | Size | Author |
|---|---|---|---|
| entity-view-display-conf-export.png | 170.32 KB | dpiet | |
| entity-form-display-conf-export.png | 176.3 KB | dpiet | |
| bp-accordion-manage-display.png | 405.07 KB | dpiet |
Issue fork bootstrap_paragraphs-3456019
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dpiet commentedComment #3
mably commentedComment #4
dpiet commentedComment #5
dpiet commentedComment #7
dpiet commentedComment #8
dpiet commentedHere is a patch in order to fix configuration for Bootstrap paragraphs accordion type like proposed in the MR !35
Comment #9
leducdubleuet commentedI can confirm that the patch fix the issue when installing the module and sub-modules with it. Thanks!
You absolutely need to start from scratch though. Uninstall all modules, add the patch to composer.json, install the modules again.
Be aware that the "Bootstrap Paragraphs Webform" module does not delete its paragraph type "bp_webform" when uninstalling. You have to delete this type manually before being able to install it again.
Thank you very much, I love this module!
Comment #10
thejimbirch commentedThanks for the issue and fix! Merging to dev.
Comment #11
thejimbirch commented