Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When using three-col-dynamic.html.twig I expected the layout to dynamically use the space available, so when one column is empty because the fields are optional, shouldn't there be just 2 columns printed?
Steps to reproduce
Create a section using Rocketship 3-Col Dynamic layout, fill each column with fields, upon entering content, fill all except the fields for one column. When inspecting you'll see all columns printed.
Comments
Comment #4
rembrandx CreditAttribution: rembrandx at Dropsolid commentedWe need to add some checks for empty blocks and fields, so we can do real 'empty' region detection. At the moment there's only a check for blocks being present in the regions. But blocks tend to render even if fields are empty.
There's some suggestions in this old post:
https://drupal.stackexchange.com/questions/175389/how-do-i-properly-dete...
Not a lot of robust ones but it's a starting point.
Comment #5
Grayle CreditAttribution: Grayle at Dropsolid commentedOh yeah, it's a real issue, but I think the stopgap of rendering it should solve the 80% use case.
This is the core issue where they're trying to fix it properly: https://www.drupal.org/node/953034
Comment #6
Grayle CreditAttribution: Grayle at Dropsolid commented