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

Custom Post Types

Started by Muut Archive 11 years ago · 3 replies · 670 views
11 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?

11 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 Deleted User, 9 years ago
0 1328 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago