定制 contao-bootstrap/accordion 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

contao-bootstrap/accordion

最新稳定版本:3.1.0

Composer 安装命令:

composer require contao-bootstrap/accordion

包简介

Bootstrap 5 accordion component for Contao CMS

README 文档

README

Version GitHub issues License Build Status Downloads

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.

Changelog

See changelog

Requirements

  • PHP ^8.2
  • Contao ^5.3

Install

Managed edition

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

Symfony application

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()
        ];
    }
}

Migration

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: true

Afterwards you can run the migration in the Contao Manager or via CLI.

Deprecated

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

统计信息

  • 总下载量: 1.25k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2025-04-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固