Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

ICS content type not found

Started by Simon Bösch 5 years ago · 0 replies · 425 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 blu3prince, 4 days ago
1 84 15 hours ago
Support · by complanar, 1 week ago
6 165 2 days ago
Support · by Rick Beebe, 1 week ago
2 124 4 days ago
Support · by alex, 5 days ago
2 107 4 days ago
Support · by Marcel, 2 weeks ago
1 157 5 days ago