An element for rendering grid layouts, e.g. cards
Gridsection introduces a block that can handle and render items in a simple grid.
The most basic form are blocks or cards:
composer require syntro/silverstripe-elemental-gridsection
See License
The default template provided with this module renders a simple,
bootstrap-based grid with items filling 1/3
of the pagewidth at xl
. It is recommended to add a new default template
in your theme/page under templates/Syntro/ElementalGridsection/Elements/Gridsection.ss
By default, this module does not apply additional styles. You can however add
more styles by using the yaml config:
Syntro\ElementalGridsection\Elements\Gridsection:
styles:
cards: A Specifc style.
And adding a new template under
templates/Syntro/ElementalGridsection/Elements/Gridsection_cards.ss
Note that it may well be the case that you need more fields to store
information or that you do not use all fields (i.e. theContent
field).
In that case, it my be useful to apply a custom extension to the Griditem
class, removing fields depending on the$item->Section
s style. This
helps to not confuse the editor
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over
existing issues to ensure yours is unique.
If the issue does look like a new bug:
Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem