erdmannfreunde /
contao-grid-bundle
Contao 扩展,用于创建网格布局
2.0.6
2024-06-12 08:03 UTC
Requires
- php: >=8.1
- contao/core-bundle: ^5.0
- symfony/config: ^5.0 || ^6.0
- symfony/dependency-injection: ^5.0 || ^6.0
- symfony/http-kernel: ^5.0 || ^6.0
Requires (Dev)
- contao/easy-coding-standard: ^4.0
- contao/manager-plugin: ^2.7
Conflicts
- contao/core-bundle: ^4.4
README
contao-grid-bundle
是 euf_grid 扩展的官方继任者。它通过 euf_grid。
使用此包,您可以在 Contao 中将内容元素排列成一个多列网格(默认为 12 列)。我们建议您将其与我们的 Contao 主题结合使用。更多信息:[https://erdmann-freunde.de/produkte/contao-themes/](https://erdmann-freunde.de/produkte/contao-themes/)
此扩展的功能
安装后,将为内容元素添加两个新字段,用于输入网格类和其它选项。此外,还有更多内容元素可用于在行和列中进行嵌套。
配置
这是默认配置。您可以通过 config.yml
覆盖这些配置(也可以仅覆盖部分)。当您使用不同的断点或布局中简单的列宽不重要时,这很有用。
erdmannfreunde_contao_grid: row_class: row columns: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 columns_no_column: true viewports: - xs - sm - md - lg - xl viewports_no_viewport: true column_prefixes: - col - row-span options_prefixes: - col-start - row-start pulls: - pull-left - pull-right positioning: - align - justify directions: - start - center - end - stretch options_columns: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12
更新说明
contao-grid-bundle
是将 euf_grid 作为 Contao 扩展进行重写。行和列的设置基于 euf_grid 版本 3,因此是兼容的。如果您已经通过dcaconfig.php
调整了网格扩展,应按照上述说明通过config.yml
进行这些调整。