Add swappable (dynamic) grid systems to core

Created on 18 October 2012, over 12 years ago
Updated 17 April 2025, 5 days ago

This is a sub-issue to ๐ŸŒฑ [META] Add editable responsive layouts to Drupal core Postponed

Problem/motivation

Various grid systems are a best practice for web layouts and they serve as excellent positioning guides for new website editors who would otherwise need free form width and placement tools for dynamic layouts proposed in ๐ŸŒฑ [META] Add editable responsive layouts to Drupal core Postponed . However, there are many types of grid systems and the probably most widely known equal column fluid/fixed grids (such as 960gs or twitter bootstrap's fluid grids can or might already been obsoleted).

Proposed solution

Add pluggable grid system support to core. The grids themselves would not (yet) be useful for anything without other issues in ๐ŸŒฑ [META] Add editable responsive layouts to Drupal core Postponed fulfilled, however as the layout plugin introduction proved (in #1787846: Themes should declare their layouts โ†’ ), unexpected good side effects are not uncommon.

This patch adds a grid.module which provides an API and UI for managing Grid config entities. Each Grid config entity has a "type" which maps to a plugin that's responsible for exposing the options appropriate for that type and generating the CSS for a given set of options. The only type included in this patch is EqualColumn: contrib can add more.

This patch does not require that all (or any) themes use it for their CSS. It provides a common way of working with UI configurable grids, so only themes, layouts, and other tools that want to interact with user-configured grids need to deal with this.

โœจ Feature request
Status

Postponed: needs info

Version

11.0 ๐Ÿ”ฅ

Component

other

Created by

๐Ÿ‡ญ๐Ÿ‡บHungary Gรกbor Hojtsy Hungary

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Thank you for sharing your idea for improving Drupal.

    We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024