znrl/znrl_ics 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

znrl/znrl_ics

最新稳定版本:0.5.0beta

Composer 安装命令:

composer require znrl/znrl_ics

包简介

Allow Eporting Contao Calendars into ics files (ICal)

README 文档

README

What is it?

This is a Contao extension to export Contao-calendars

  • Right now it only exports complete (no added content elements) calendars to ICal (.ics) files.
  • Calendars get exported by saving the export rule created by this extension (every time).
  • If it is no single export (export once) every time a event of a calendar with an export rule gets saved it gets exported.
  • Event title is used as SUMMARY and teaser is used as DESCRIPTION.
  • It exports Title, Start Date/Time, End Date/Time, Location, Teaser and handles Recurrence settings (not well tested).

Additional Information?

This extension uses Sabre\Vobject https://github.com/fruux/sabre-vobject

If installed manually (without Composer) you will need to get it as well. In this case you might want to follow these steps:

  1. Download Sabre\Vobject e.g. 3.4.7 (Versions > 4 didn't work when this was written)
  2. Add these files to the znrl_ics folder as following
    • create the folders "vendor/sabe/vobject" in system/modules/znrl_ics
    • copy all files from Sabre\Vobject (bin, lib, test, ... - "lib" might be the only one needed) to the new "vobject" folder
  3. Get and install the NamespaceClassLoader (also available from Github) only tested with version 1.0.2 from ER2 https://contao.org/de/erweiterungsliste/view/NamespaceClassLoader.de.html
  4. Replace the constructor in znrl_ics/classes/IcsExport.php with this
#!php
    public function __construct()
    {
        // Changed to work without Composer and use NamespaceClassloader instead to load Sabre\Vobject
        $loader = new \Composer\Autoload\ClassLoader();
        $loader->addPsr4('Sabre\\VObject\\', __DIR__.'/../vendor/sabre/vobject/lib');
        $loader->register();
    }

If you have troubles with special characters (google calendar) it helped me to add following to the .htaccess:

<IfModule mod_mime.c>
  #...
  #other AddType rules by Contao
  #...
  AddType 'text/calendar; charset=UTF-8'      .ics
</IfModule>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-04-21