benbyf Posted April 16, 2020 Posted April 16, 2020 Spent too long getting this to work so I've made a short github gist and have included it here so people don't have to ? https://gist.github.com/benbyford/ada3a229501c769880b0aa2b13276d3e I've added this php instead of the normal page in my templates when a /cal url query is preset. 3
salmiak Posted April 16, 2020 Posted April 16, 2020 This could be useful: https://github.com/spatie/calendar-links 3
horst Posted April 16, 2020 Posted April 16, 2020 If you, for what ever reason, need to present a link to a static *.ics file for download, you can add this line to the servers .htaccess file instead have to send http headers: AddType text/calendar .ics 3
benbyf Posted April 16, 2020 Author Posted April 16, 2020 5 hours ago, salmiak said: This could be useful: https://github.com/spatie/calendar-links I ended up just ripping out what I needed from this (didnt think it required a whole library really), so I also included google and outlook as options. 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now