lsascha / fullcalendar
为 Flow / Neos 实现的 fullcalendar (fullcalendar.io) 包
2.0.0
2020-05-21 17:57 UTC
Requires
- neos/flow: 6.* || dev-master
This package is auto-updated.
Last update: 2024-09-22 04:55:50 UTC
README
为 Flow / Neos CMS 实现的 fullcalendar 包
安装
使用 Composer 安装
composer require lsascha/fullcalendar
运行 doctrine 迁移
./flow doctrine:migrate
特性
- 可用于 Neos CMS 带插件 + 后端模块或作为独立 Flow 包。
- 多个事件来源(来自数据库、Neos 页面或 Google 日历)。
- 易于使用的 Neos CMS 后端模块,支持拖放式事件编辑。
使用方法
作为独立(Flow)
作为独立 Flow 包:默认路由为 /calendar.html
。默认情况下,显示所有来源的所有事件。要限制显示特定来源,请添加 ?sources[]=_IDENTIFIER_
参数。
可以通过 CLI 命令添加事件来源和事件。查看 ./flow help calendar:addsource
和 ./flow help calendar:addevent
获取帮助。
在 Neos CMS 中
安装到 Neos CMS 后,添加插件、页面类型和后端模块。为应编辑事件的后端用户分配 CalendarAdmin
角色(《Lsascha.FullCalendar:CalendarAdmin》)。
然后后端用户应在 管理
下看到名为 Calendar
的新后端模块。
对于 Google 日历作为事件来源,您需要在 Settings.yaml 中设置 Google 日历 API 密钥 Lsascha.FullCalendar.googleCalendarApiKey
。Google 日历需要是公开可访问的。有关更多信息,请参阅 https://fullcalendar.io/docs/google-calendar。