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 →

Custom Post Types

Started by Muut Archive 12 years ago · 3 replies · 899 views
12 years ago

What's the closest thing to WordPress custom posts types? Modular pages? Or is there another way that works a bit better for large numbers of repeated items with the same fields?

12 years ago

Basically there are no limitations in Grav. Modular pages are a good showcase for how a custom twig file can render stuff from a page with custom headers. You are not limited to modular pages though.

You can use the modular pages/templates in the one-page skeleton as examples, but really this could be a regular page too. You can create any root-level .html.twig template file for your pages, and then reference this template file by your markdown filename

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago