Custom blocks don’t render inside the EDS Columns block in AEM Sites

This article describes a limitation in the Adobe Experience Manager EDS Columns component, where custom blocks are not rendered or decorated as expected. It also provides recommended approaches for creating multi-column layouts with custom content.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service
  • AEM Sites
  • Edge Delivery Services
  • Columns block

Issue/Symptoms

  • The out-of-the-box EDS Columns block doesn’t render custom blocks correctly.
  • Only default inline content, such as text, titles, images, and buttons, renders inside the Columns block.
  • Custom blocks placed inside the Columns block aren’t decorated by their dedicated JavaScript or CSS.
  • Multiple text blocks or custom blocks inside the Columns block merge or stack incorrectly instead of appearing in separate columns.

Cause

The EDS Columns block is designed to support default inline content and doesn’t support nested custom blocks. This behavior is a product limitation rather than a defect.

Resolution resolution

Follow the steps below to address the limitation:

  1. Use a dedicated grid-based container block, such as feature-grid or card-grid, to create a flexible multi-column layout for custom blocks.
  2. Model the grid block as a container and define each column as a child item in the model.
  3. Implement the responsive grid layout by using CSS Grid or Flexbox.
  4. Alternatively, place the custom blocks in their own section and apply a section style, such as a two-column layout, to arrange the child blocks side by side with CSS.
  5. Review the official Adobe Experience Manager documentation for additional information about Columns block limitations.
  6. Preview the updated layout and verify that the custom blocks render and display as expected.
recommendation-more-help
experience-cloud-kcs-help-kbarticles