cgoit/calendar-extended-bundle

Contao 4/5 LTS 日历扩展包。更好的重复事件和例外处理。

资助包维护!
cgoIT
Ko Fi

安装次数: 413

依赖关系: 0

建议者: 2

安全: 0

星星: 1

关注者: 0

分支: 20

开放问题: 0

语言:JavaScript

类型:contao-bundle

2.4.6 2024-09-04 20:20 UTC

README

Latest Version on Packagist Dynamic JSON Badge Installations via composer per month Installations via composer total

Contao 4 & 5 LTS 日历扩展

此包为 Contao 添加更多日历功能。

  • 更好的重复事件处理
  • 事件例外
  • 假期

安装

在您的项目目录中运行以下命令

composer require cgoit/calendar-extended-bundle

重要通知

从版本 2 开始,此包的一些功能不再支持。

从 1.x 版本升级

如果您想从版本 1 升级,请运行 contao:migrate 脚本。在第一步中,执行所有数据库更新 而不 进行删除。这确保了所有迁移都可以在第一次迁移轮次之后运行。如果您确信版本 2 对您适用,可以通过 contao:migrate 脚本运行所有删除操作。

Contao 5 支持

从版本 2 开始,此包支持 Contao 5。在此版本中进行了许多重构,许多类已被拆分或移动,处理事物的完整方法也发生了变化。因此,某些功能可能还没有达到100%的支持。因此,我建议所有 Contao 4 用户非常仔细地检查版本 2 是否按预期工作。或者,版本 1 可以继续用于 Contao 4。

配置

像往常一样,您可以通过 config.yml 配置一些设置。默认配置如下

# Default configuration for extension with alias: "cgoit_calendar_extended"
cgoit_calendar_extended:

    # The maximum number an event is repeated. Default: 365.
    max_repeat_count:     365
    exceptions:

        # The maximum number of repeat exceptions for an event. Default: 250.
        max_count:            250

        # The range of days for the move date option. 14 means from -14 days to 14 days. Default: 7.
        move_days:            7
        move_times:

            # The start time for the move time option. Default: 00:00.
            from:                 '00:00'

            # The end time for the move time option. Default: 23:59.
            to:                   '23:59'

            # The interval in minutes for the move time option. Default: 15.
            interval:             15

    # Define which fields of an event should be available as filter. Default: ['title', 'location_name', 'location_str', 'location_plz'].
    filter_fields:

        # Defaults:
        - title
        - location_name
        - location_str
        - location_plz

        # Examples:
        # - title
        # - location_name
        # - location_str
        # - location_plz