This extension provides Bootstrap integration into Contao.
Contao-Bootstrap is a modular integration. This extension provides the bootstrap accordion into Contao. It uses the default accordion element of Contao and extends it with an accordeon group element.
See changelog
- PHP ^8.2
- Contao ^5.3
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/accordion~2.0
# Using composer directly
$ php composer.phar require contao-bootstrap/accordion~2.0
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 \ContaoCommunityAlliance\MetaPalettes\CcaMetaPalettesBundle(),
new Netzmacht\Contao\Toolkit\Bundle\NetzmachtContaoToolkitBundle(),
new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(),
new ContaoBootstrap\Grid\ContaoBootstrapAccordionBundle()
];
}
}To automatically migrate your accordion from Start- and Stop-Wrappers to nested fragments, you have to enable the
migration by creating config/packages/contao_bootstrap_accordion.yaml with the following content:
contao_bootstrap_accordion:
enable_wrapper_migration: trueAfterwards you can run the migration in the Contao Manager or via CLI.
The legacy content elements bs_accordion_start, bs_accordion_end,
bs_accordion_group_start and bs_accordion_group_end are deprecated
and will be removed in a future major version. Use bs_accordion_wrapper
and bs_accordion_group_wrapper instead.
To disable the legacy elements now, set the following configuration:
contao_bootstrap_accordion:
enable_legacy_elements: false