Problem/Motivation
On Varbase 9.2.x (Drupal ~11.4) the Landing page (Paragraphs) content type's Components field (field_lp_paragraphs) does not render on the node add/edit form. There is no Add Component button, so no paragraphs can be added to a Landing page.
Root cause: vbp_text_and_image and varbase_landing depend on each other. vbp_text_and_image_install() calls vbp_text_and_image__add_target_bundle_text_and_image_to_landing_page_components(), which edits field.field.node.landing_page.field_lp_paragraphs. When vbp_text_and_image is installed before varbase_landing has imported that config, the helper writes a partial config (missing field_type). That invalid config then blocks varbase_landing's optional config import, and the field cannot be loaded (Unable to determine class for field type ''), so the widget is dropped from the form.
Steps to reproduce
- Install Varbase 9.2.x on Drupal ~11.4 (or a Standard site, then enable
varbase_landing). - Go to
/node/add/landing_page. - The Components field and its Add Component button are missing.
Proposed resolution
Guard vbp_text_and_image__add_target_bundle_text_and_image_to_landing_page_components() to only extend an existing, fully defined field config (bail when the config is new or has no field_type), so it never writes a partial config. Add hook_modules_installed() in vbp_text_and_image.module to add the text_and_image target bundle once varbase_landing is installed, covering both install orders.
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ✅ Reviewed by a human
- ✅ Code review by maintainers
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes
- ✅ Release varbase-9.2.0, varbase_bootstrap_paragraphs-9.2.0
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
fix: #3608306 Landing page (Paragraphs) Components field does not render when vbp_text_and_image installs before varbase_landing
Issue fork varbase_bootstrap_paragraphs-3608306
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 #4
rajab natshah✅ Released varbase_bootstrap_paragraphs-9.2.0
Comment #6
rajab natshah✅ Released varbase-9.2.0