Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

ICS content type not found

Started by Simon Bösch 5 years ago · 0 replies · 393 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 Paul Hodges, 4 weeks ago
19 490 6 days ago
Support · by Lauw, 1 week ago
2 107 1 week ago
Support · by Anna, 3 weeks ago
4 430 1 week ago
Support · by gtx, 4 weeks ago
4 380 3 weeks ago
Support · by Anna, 1 month ago
9 487 4 weeks ago