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.
Would love to see support for XY Grids.
Potentially a configuration option or separate set of templates that work for XY Grids.
Perhaps as a shim, add configuration for the "column" / "cell" classes?
Comment | File | Size | Author |
---|---|---|---|
#8 | foundation_layout_X-Y_grid-2929021.patch | 21.59 KB | vinitk |
#7 | foundation_layout_X-Y_grid.patch | 22.95 KB | vinitk |
Comments
Comment #2
Saif Al-Dilaimi CreditAttribution: Saif Al-Dilaimi commentedany progress?
Comment #3
philosurfer CreditAttribution: philosurfer commentedLet us start asking what needs to be done to support XY grids as this is the Zurb standard moving forward. ( >= 6.5)
Comment #4
philosurfer CreditAttribution: philosurfer commentedAfter talking with my team and following up with the drupal.slack.com/#layouts channel, there are a number of things that need resolve to be compatible with Drupal 8.7+.
Specifically the attributes and classes need to use twig functions or else it breaks layout builder functionality.
The patch forthcoming should be added in an 8.7.x-dev release of this module.
Comment #5
philosurfer CreditAttribution: philosurfer commentedmoving this to a bug as it breaks zurb_foundation and layout builder functionality at this time.
Comment #6
philosurfer CreditAttribution: philosurfer commentedComment #7
vinitk CreditAttribution: vinitk commentedUpdated the Zurb foundation layout template markup with X-Y grid convention with internal padding in x-axis.
Comment #8
vinitk CreditAttribution: vinitk commentedModified the Zurb foundation layout template markup with X-Y grid convention (without internal padding).
Comment #9
scottsawyerI just wanted to update this issue:
I was frustrated with the limitations of the layouts provided Foundation Layouts for creating arbitrary grid cell widths, offsets, order, and I wanted to use XY Grid in my projects. I see xy_grid_layouts project addresses the latter challenge, but not really the former.
Rather than creating a layout for every conceivable combination of cell widths at every breakpoint, I decided to create fewer, more flexible layouts.
Example Use
Imagine if you wanted 3 columns:
While this example is a bit contrived, designs don't always follow an expected pattern. Foundation provides a lot of classes to manipulate cells. It would be ridiculous to try to create every possible layout for every design requirement. Let's put the power in the hands of the site builder.
Features:
Since this module is currently in a private repo, and would need some additional cleanup before it would be ready for public consumption, I am just posting my layout plugin file and a template so the community can take a look and see if this is something that could be considered as an enhancement to this project. If nothing else, it may provide some inspiration to providing more flexible layouts.
If you are interested in collaborating, please let me know.
Here is my 4 column template file:
I see this as a massive improvement, and I'd be willing to provide a public repo.