quellenform / t3x-lib-ical
将数据库记录作为日历项目(VEVENT)下载。
0.4.3
2024-01-08 21:11 UTC
Requires
- php: >=8.0
- typo3/cms-core: ^11.5 || ^12
Replaces
- typo3-ter/lib_ical: 0.4.3
README
TYPO3 库:iCalendar
TYPO3 CMS 扩展 "lib_ical"
它做什么?
此扩展在TYPO3中充当iCal-服务,将被不同的数据提供者使用。
添加提供者
为EXT:lib_ical
安装数据提供者或使用以下ext_localconf.php
中的代码注册自己的提供者
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( \Quellenform\LibIcal\IcalRegistry::class )->registerProvider( 'eventnews', \Quellenform\LibIcalEventnews\Provider\EventnewsProvider::class, [ 'components' => 'vevent', 'class' => \GeorgRinger\News\Domain\Repository\NewsRepository::class ] );
向您的模板中添加额外的行,并使用提供的视图辅助器
<ical:link class="btn btn-primary" provider="eventnews" additionalParams="{uid:newsItem.uid,custom:'value'}">Download</ical:link>
注意:由于目前这是测试版,只能生成类型为“vevent”的记录。