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 →

Creating a custom "product" content type?

Started by Varg 7 years ago · 1 replies · 1013 views
7 years ago

Let's say I want a web site with various products on it. I know a database driven site might be a better fit for this but if I want to do it in grav, does it have support to create a custom content type such as "Product" with fields like:

Name
Description
Price
Weight

Product is just an example it could be any custom content type.

From what I've read you can put these fields in the header section of a page, is that the best way to do it in grav? I also read something about blueprints, does that apply here?

Is there support for having the data in a json/yaml file and generating the pages on the fly. I wouldn't have a huge amount of items but it would still be 200 to 300 items so creating 200 individual folders and pages seems tedious

last edited 03/22/20 by Varg

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 4 days ago
1 96 4 days ago
Support · by Anna, 3 weeks ago
1 265 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 657 1 month ago