Custom Content Types and Many to Many Relationships

I’ve been following Grav’s development for a while, reading the blog and docs, but I have not had a chance to try it out yet. I really like what I see, but there is a big blank spot regarding content and how it can be modeled. How would you go about defining a content type with a certain number of fields of various kinds and then relate it to other content types? How would you handle many to many relationships – for example, authors to articles?

2 Likes

Grav has a simple but surprisingly powerful system of taxonomy mapping built-in, and this will probably be able to achieve what you are looking for.

You can even dynamically create taxonomies for pages at run-time via plugin events. There is a good example of this in the Archives plugin where we dynamically set a month_year on each page so they can be queried and retrieved as needed.