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

  1. Install Varbase 9.2.x on Drupal ~11.4 (or a Standard site, then enable varbase_landing).
  2. Go to /node/add/landing_page.
  3. 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
Command icon 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

rajab natshah created an issue. See original summary.

  • rajab natshah committed 5bcbedb2 on 9.2.x
    fix: #3608306 Landing page (Paragraphs) Components field does not render...
rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Issue summary: View changes
Status: Active » Fixed
Issue tags: +varbase-9.2.0, +varbase_bootstrap_paragraphs-9.2.0

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.2.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.