Both look very similar, so I was wondering in which case would be appropriate to use a taxonomy over a section.
Let’s say my website has a section called “posts”, under posts there are other sections “experiences”, “events” holding posts.
“events” and “experiences” could be a good way to categorize content, therefore my first thought is to create a category term for events and one for experiences.. However this way I’d have two duplicate pages, eg. for events:
- categories/events
- posts/events
Is there an actual difference, or these are virtually the same? What would be the advantage of using a taxonomy rather than a section? Maybe when I can have more terms for one post?
I would say this one
have a look at Content Management Taxonomies
benefits:
- multiple values per page
- own pages for the taxonomy and the terms to add additional content
so if your pages are either events or experiences a section is fine.
This is a classic content modeling question.
Think of a top level content directory as a content type.
A post is one content type, with metadata (front matter) that might include a title only. The template to render posts is probably unique (e.g., layouts/posts/page.html
).
An event is another content type. Its metadata might include things like start/stop times, locations, speakers, links to registration pages, etc. The metadata is fundamentally different than that of a post, as is its template (e.g., layouts/events/page.html
).
You might assign taxonomy terms to either one. A given term might apply to one or more content types. For example, the terms in a “topics” taxonomy might be used by both content types (e.g, topics = ['legislation', 'litigation']
.
Gemini provided this explanation:
Content types define the structure and fields for a piece of content, while taxonomy provides a system for classifying and organizing that content. Think of it like this: content types are the “boxes” you create to hold information, and taxonomy helps you label those boxes with categories and tags so you can find them later.
I would add that taxonomies are great for listing related content in a sidebar.