Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

ICS content type not found

Started by Simon Bösch 5 years ago · 0 replies · 461 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 webmasterodp, 1 week ago
4 176 1 week ago
Support · by nwhitfield, 1 week ago
2 153 1 week ago
Support · by stell, 3 weeks ago
5 389 2 weeks ago
Support · by gravinator, 1 month ago
5 580 2 weeks ago
Support · by Gravver, 3 weeks ago
6 365 3 weeks ago