Skip to content

Custom Grids Plugin

View Plugin

The DmfCmsCustomGrids plugin adds 23 predefined grid layouts for Shopping Experiences to your Shopware 6 installation. These enable more flexible design of shop pages with various column arrangements.

On this page:


Requirements

  • Shopware 6.7.0 or higher
  • PHP 8.2 or higher

Installation

bash
composer require dmf/plugin-cms-custom-grids
bin/console plugin:install --activate DmfCmsCustomGrids
bin/console cache:clear

Features

  • 23 Grid Layouts: Predefined column arrangements for every use case
  • Bootstrap 12-Column System: Based on the well-known 12-column grid
  • Responsive: All layouts are optimized for mobile devices
  • Seamless Integration: Appear directly in the CMS block selection dialog
  • PWA Compatible: Vue components for Shopware PWA available

Available Grid Layouts

Equal Columns

LayoutColumnsDescription
1-column1 × 12Full width
2-column2 × 6Two equal halves
3-column3 × 4Three equal thirds
4-column4 × 3Four equal quarters
5-column5 × ~2.4Five equal columns
6-column6 × 2Six equal columns
8-column8 × 1.5Eight equal columns

Asymmetric 2-Column Layouts

LayoutSplitDescription
2-1-2-column2 + 1 + 2Narrow - Extra narrow - Narrow
2-2-column2 + 2Two narrow columns
2-3-column2 + 3Narrow + Medium
2-4-column2 + 4Narrow + Wide
2-5-column2 + 5Narrow + Wide
2-6-column2 + 6Narrow + Half
2-8-2-column2 + 8 + 2Sidebar - Content - Sidebar
3-9-column3 + 9Quarter + Three-quarters
4-8-column4 + 8Third + Two-thirds
5-7-column5 + 7Asymmetric
7-5-column7 + 5Asymmetric (reversed)
8-4-column8 + 4Two-thirds + Third
9-3-column9 + 3Three-quarters + Quarter

3-Column Layouts

LayoutSplitDescription
3-3-6-column3 + 3 + 6Small + Small + Large
3-6-3-column3 + 6 + 3Sidebar - Content - Sidebar
6-3-3-column6 + 3 + 3Large + Small + Small

Usage

Add Grid Block

  1. Open a Shopping Experience in Admin
  2. Click Add Block
  3. Select the Custom Grids category
  4. Choose the desired layout
  5. Add elements to the columns

Visual Representation

The grids are based on the Bootstrap 12-column system:

12-Column Grid:
|  1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  | 10  | 11  | 12  |

2-column (6+6):
|           6           |           6           |

3-9-column:
|   3   |               9                       |

2-8-2-column:
| 2 |           8           | 2 |

Responsive Behavior

All layouts automatically adapt to smaller screens:

  • Desktop (≥992px): Full grid display
  • Tablet (768px - 991px): Columns are stacked or reduced
  • Mobile (<768px): All columns are displayed one below the other

Technical Details

Block Category

All Custom Grids appear in the custom-blocks category in the CMS block selection dialog.

File Structure

src/Resources/app/
├── administration/src/module/sw-cms/blocks/custom-blocks/
│   ├── custom-grid-1-column/
│   │   ├── component/          # Admin preview
│   │   ├── preview/            # Block selection preview
│   │   └── index.js            # Block registration
│   └── ...
├── storefront/src/scss/
│   └── base.scss               # Frontend styles
└── pwa/components/             # PWA Vue components

PWA Support

Vue components for all 23 layouts are available for Shopware PWA at:

src/Resources/app/pwa/components/swComponents/blocks/