Contao CMS 的 Bootstrap 导航组件

2.2.0 2022-04-20 10:06 UTC

README

Version GitHub issues License Build Status Downloads

此扩展将 Bootstrap 集成到 Contao 中。

Contao-Bootstrap 是一个模块化集成。组件提供了 Bootstrap 组件的导航功能。

特性

前端模块

  • 导航栏元素

模板

  • 快速导航和快速链接导航的下拉模板
  • 导航下拉模板

变更日志

查看 变更日志

要求

  • PHP 7.1
  • Contao ~4.4

安装

管理版

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

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

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

Symfony 应用程序

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

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\Html\NetzmachtHtmlBundle(),
            new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(),
            new ContaoBootstrap\Grid\ContaoBootstrapNavbarBundle()
        ];
    }
}