The DIU.Grid Plugin is a plugin for neos cms that provides the a 12 column grid system as a basic structure. This kind of grid system is found on many web pages. The css structure is based on bootstrap 4.x. The static resources are not added in this project.
composer require diu/grid
- Version 2.x is for Neos 4.1,4.2,3.3
- Version 3.x is for Neos 4.2 and upcoming
Require the package in your composer.json file.
Allow sections as childnodes in your content elements.
Override the constraints for the grid content elements.
Add CSS rules for top and bottom margins. This is necessary because breakpoints may vary between projects. An Example can be found in
Resources/Private/Fusion/Components/Atom/Margin/Margin.scss. Maybe also override the allowed values in
Add in your site package necessary layouts
0-4-4-4 => 3 equal columns no beginning offset 2-4-4-2 => 3 columns, two 4 cols and one 2 cols with an beginning offset of two cols
- Add example for override