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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Creating a custom "product" content type?

Started by Varg 6 years ago · 1 replies · 666 views
6 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 Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago