Skip to content

Categories

Organize your media items by using categories to group them by topic. For example, you can create categories like “Theology”, “Christian Living,” and “Kids.”

Users can filter search results by these categories, making it easier to find relevant content. Categories can also be used for generating a gallery of media items on the homepage. Categories show up on the search result items.

Here is an example of a category:

src/content/categories/theology.json
{
"label": "x.category.theology"
}

A category is a JSON file that describes a category. The category identifier is its filename without the .json suffix.

type: string
example: "x.category.theology"
required: true

The label is a the name of the category that shows up on the UI. The label can either be a fixed string or a translation key to support multiple locales.