Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

ICS content type not found

Started by Simon Bösch 5 years ago · 0 replies · 527 views
5 years ago

I cannot get working a custom ICS content type.

In my calendar.ics.twig file, I fetch my events and output them as iCal (also tried calendar.ical.twig). Adding a calendar.md in user/pages/calendar, I create the entry point. Howerever, when I access the url /calendar.ics, GRAV returns 404 Page not found.

As notice: other content types such as json and html are working for the same page type (calendar.json.twig and calendar.html.twig).

I add the custom content type in a theme. Therefore I added following blueprints to theme://blueprints:

config/media.yaml

YAML
types:
  ics:
    type: iCal
    thumb: media/thumb-ics.png
    mime: text/calendar

config/system.yaml

YAML
pages:
  types: [html,htm,xml,txt,json,rss,atom,ics]

I checked these pages for help, but still not get it working.

Did I miss something or is that still a bug of GRAV?

last edited 11/02/21 by Simon Bösch

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 228 9 hours ago
Support · by alex, 2 months ago
8 667 1 day ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 160 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago