[TYPO3-news] [TYPO3-project-news] Re: iCal date for single event

Tino Riedel tino.riedel at gmx.de
Tue Feb 17 13:57:43 CET 2015


Great! Thanks a lot!

This was i'm looking for.

Best Regards

Tino

Am 21.05.2014 um 09:46 schrieb Gernot Hofer:
> Hi!
>
> At the end it was very simple:
>
> 1.) Templates:
> 1.1) Put a link in the Detail.html like:
> <n:link newsItem="{newsItem}" settings="{settings}" configuration="{additionalParams:'&type=9819'}"> <i class="fa fa-calendar-o"></i> iCal </n:link>
> 1.2) Add a iCal template Detail.ical like:
> {namespace n=Tx_News_ViewHelpers}BEGIN:VCALENDAR VERSION:2.0 PRODID:-//TYPO3/NONSGML News system (news)//EN BEGIN:VEVENT UID:news-{newsItem.uid}@{settings.domain} ORGANIZER;CN=„Company":MAILTO:info at company.de DTSTAMP:<n:format.date format="%Y%m%dT%H%M%SZ" strftime="1">{newsItem.tstamp}</n:format.date> DTSTART:<n:format.date format="%Y%m%dT%H%M%S" strftime="1">{newsItem.datetime}</n:format.date> SUMMARY:<n:format.hsc>{newsItem.title}</n:format.hsc> LOCATION:<n:format.hsc>{newsItem.firstCategory.title}</n:format.hsc> END:VEVENT END:VCALENDAR
>
> 2.) TS
> 2.1) Put your TS as in the manual described (http://docs.typo3.org/typo3cms/extensions/news/latest/Main/Administration/ICalendar/Index.html) "iCalendar feed by TypoScript"
> [globalVar = TSFE:type = 9819]
>
> config {
>      disableAllHeaderCode = 1
>      xhtml_cleaning = none
>      admPanel = 0
>      metaCharset = utf-8
>      additionalHeaders = Content-Type:text/calendar;charset=utf-8
>      disablePrefixComment = 1
> }
>
> pageNewsICalendar = PAGE
> pageNewsICalendar {
>      typeNum = 9819
>      10 < tt_content.list.20.news_pi1
>      10 {
>              switchableControllerActions {
>                      News {
>                              1 = detail
>                      }
>              }
>              settings < plugin.tx_news.settings
>              settings {
>                      startingpoint = 24
>                      format = ical
>                      domain.data = getEnv:HTTP_HOST
>                      useStdWrap = domain
>              }
>      }
> }
> [global]
>
>    2.2) Change „switchableControllerAcrion.News.1= detail“ so the Detail template is used
>
> 3.) When you use RealUrl: add type 9819 to realurl_conf.php
>
> Best Regards
> Gernot
>
>
> Am 19.05.2014 um 09:42 schrieb Gernot Hofer <gh at sternwerk.at<mailto:gh at sternwerk.at>>:
>
> Hi!
>
> how can i make a link/download on the detail view for an iCal date for an (one) event?
>
> thank you!
>
> best regards
> gernot
> _______________________________________________
> TYPO3-project-news mailing list
> TYPO3-project-news at lists.typo3.org<mailto:TYPO3-project-news at lists.typo3.org>
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-news
>



More information about the TYPO3-project-news mailing list