lochmueller / calendarize

📆 Best TYPO3 Calendar ever 📆
http://typo3.org/extensions/repository/view/calendarize
75 stars 84 forks source link

Feature: ICS download containing all events which belong to the currently displayed list #719

Closed artus70 closed 1 year ago

artus70 commented 1 year ago

The ICS download is so far only possible for individual events. I am looking for an approach to offer an ICS file that contains all events which belong to the current list.

How can this be achieved? Or does a solution exist already?

okmiim commented 1 year ago

HI @artus70 ,

try to uncomment the commented lines in the List template: https://github.com/lochmueller/calendarize/blob/9628732b81c5c69aeed0d80d782e130d59c1d8bc/Resources/Private/Templates/Calendar/List.html#L7-L11 This will generate an ICS link and file with all indices (ignores pagination).

If you only want to generate an ICS with the events on current page (with pagination), replace {indices} with {pagination.paginator.paginatedItems} in List.ics https://github.com/lochmueller/calendarize/blob/9628732b81c5c69aeed0d80d782e130d59c1d8bc/Resources/Private/Templates/Calendar/List.ics#L4

artus70 commented 1 year ago

The link urls (ical etc.) are cryptic because of i.e. their cHash parameters.