Hey there.
I didn’t find anything on this, so here’s my question:
Let’s say I got a page & want to auto-generate a file containing some of the values entered into the page’s form fields (think of a quick summary, title & (last modified) date). How could I achieve this (without plugin/subpage)?
Hey there again,
thanks for the reply. If I may, let me bother you once again with a similar request:
I installed the calendar plugin and everything’s just working fine, what I need is to generate an .ics file from my page input. I can modify the ical-snippet, but how to make a file out of it?
Maybe I am asking for too much, just say the word and I’ll try to figure it out. I see how this maybe goes too far
I’m using the ics-template from mzur’s calendar-plugin.
First thing I tried was using this code as page template, so linking to the page would output the ics information:
I don’t like I can’t append a file extension that way, but the header makes sure calendar apps detect it as ics information BUT it’s a dirty workaround. I want to resolve it from within the page (calendar) template and just tell kirby to encapsulate this ical snippet and save it as ics (for all events, extra cherries for single events as well, with a snippet that’s not looping).