Bootstrap 网格组件

2.4.3 2022-08-18 08:36 UTC

README

Version GitHub issues License Build Status Downloads

此扩展为 Contao CMS 提供了 Bootstrap 4 网格工具。

特性

  • 在主题设置中管理网格定义
  • 内容元素
  • 表单元素
  • 网格模块
  • 与主题设置导入/导出

变更日志

查看变更日志

要求

  • PHP 7.1
  • Contao ~4.4

安装

管理版

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

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

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

Symfony 应用程序

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

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