contao-bootstrap / grid
Bootstrap grid component
Requires
- php: ^8.2
- ext-dom: *
- ext-pdo: *
- contao-bootstrap/core: ^3.0
- contao-community-alliance/meta-palettes: ^2.0
- contao/core-bundle: ^5.3
- doctrine/dbal: ^3.4
- mvo/contao-group-widget: ^1.4
- netzmacht/contao-toolkit: ^3.8 || ^4.0
- symfony/config: ^6.4 || ^7.4
- symfony/dependency-injection: ^6.4 || ^7.4
- symfony/http-foundation: ^6.4 || ^7.4
- symfony/http-kernel: ^6.4 || ^7.4
- symfony/routing: ^6.4 || ^7.4
- symfony/security-core: ^6.4 || ^7.4
- symfony/translation-contracts: ^3.0
Requires (Dev)
- contao/manager-plugin: ^2.1
- contao/news-bundle: ^5.3
- phpcq/runner-bootstrap: @dev
Suggests
- contao/news-bundle: Use grid in news list and news archive modules
Conflicts
- contao/manager-plugin: <2.1 || >= 3.0
- netzmacht/contao-bootstrap: *
- dev-develop / 3.2.x-dev
- dev-master / 3.1.x-dev
- 3.1.0
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-beta3
- 2.0.0-beta2
- 2.0.0-beta1
- 2.0.0-alpha1
- dev-feaure/nested-elements
- dev-support/2.x
- dev-hotfix/2.2.3
- dev-feature/repeat-image-size
This package is auto-updated.
Last update: 2026-06-05 08:40:14 UTC
README
This extension provides Bootstrap 5 grid tools for Contao CMS.
Features
- Manage grid definition in your theme settings
- Content elements
- Form elements
- Grid module
- Import/Export with your theme settings
Changelog
See changelog
Requirements
- PHP ^8.1
- Contao ^4.13 || ^5.3
Install
Managed edition
When using the managed edition it's pretty simple to install the package. Just search for the package in the Contao Manager and install it. Alternatively you can use the CLI.
# Using the contao manager $ php contao-manager.phar.php composer require contao-bootstrap/grid ^3.0 # Using composer directly $ php composer.phar require contao-bootstrap/grid ^3.0
Symfony application
If you use Contao in a symfony application without contao/manager-bundle, you have to register following bundles manually:
class AppKernel { public function registerBundles() { $bundles = [ // ... new \ContaoBootstrap\Core\ContaoBootstrapCoreBundle(), new \ContaoCommunityAlliance\MetaPalettes\CcaMetaPalettesBundle(), new \Netzmacht\Contao\Toolkit\Bundle\NetzmachtContaoToolkitBundle(), new \Mvo\ContaoGroupWidget\MvoContaoGroupWidgetBundle(), new \ContaoBootstrap\Core\ContaoBootstrapCoreBundle(), new \ContaoBootstrap\Grid\ContaoBootstrapGridBundle() ]; } }
Migration
To automatically migrate your grid from Start- and Stop-Wrappers to nested fragments, you have to enable the migration
via the bundle configuration. Create or extend the file config/packages/contao_bootstrap_grid.yaml in your Symfony
application:
contao_bootstrap_grid: enable_wrapper_migration: true
Afterwards you can run the migration in the Contao Manager or via CLI:
$ php vendor/bin/contao-console contao:migrate
Deprecated
The legacy content elements bs_gridStart, bs_gridStop and bs_gridSeparator are deprecated and will be removed in
a future major version. Use bs_grid_wrapper instead.
To disable the legacy elements now, set the following configuration:
contao_bootstrap_grid: enable_legacy_elements: false