Contao CMS的Bootstrap面板组件

2.2.0 2022-10-17 08:19 UTC

README

Version GitHub issues License Build Status Downloads

此扩展提供了Bootstrap集成到Contao中。

Contao-Bootstrap是一个模块化集成。此扩展将bootstrap面板集成到Contao中。它使用Contao的默认手风琴元素并扩展了手风琴组元素。

变更日志

查看变更日志

要求

  • PHP ^7.4 || ^8.0
  • Contao ^4.9

安装

管理版

在使用管理版时,安装此包非常简单。只需在Contao Manager中搜索该包并安装,或者您可以使用CLI。

# Using the contao manager
$ php contao-manager.phar.php composer require contao-bootstrap/panel~2.0

# Using composer directly
$ php composer.phar require contao-bootstrap/panel~2.0

Symfony应用程序

如果您在symfony应用程序中使用Contao而没有contao/manager-bundle,则必须手动注册以下包

class AppKernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('metapalettes', $this->getRootDir()),
            new Netzmacht\Contao\Toolkit\Bundle\NetzmachtContaoToolkitBundle(),
            new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(),
            new ContaoBootstrap\Grid\ContaoBootstrapPanelBundle()
        ];
    }
}