Contao中的Bootstrap布局集成


README

Version GitHub issues License Build Status Downloads

此扩展提供Bootstrap集成到Contao。

Contao-Bootstrap是一个模块化集成。布局组件允许使用后端布局编辑器定义基于网格的布局。

功能

  • 基于网格的布局
  • 自动替换定义的CSS类
  • 自动替换图片和表格类

变更日志

查看变更日志

要求

  • PHP 7.1
  • Contao ~4.4

安装

管理版

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

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

# Using composer directly
$ php composer.phar require contao-bootstrap/layout~2.0@beta

Symfony应用程序

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

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