Categories
Use categories to group your media items by topic. For example, you can create categories like “Theology”,
“Christian Living,” and “Children.” Categories can optionally reference an image that represents the category visually.
Users can filter search results by these categories, making it easier to find relevant content. Categories can also be used to generate a gallery of media items on the homepage. They also appear on search result items.
Here is an example of a category:
{ "label": { "en": "Theology" }, "image": "./images/theology.png"}Reference
Section titled “Reference”A category is a JSON file that describes a category. The category identifier is the filename without the .json suffix.
type: object
example: { "en": "Theology" }
required: true
The label is the name of the category shown in the UI. Provide a locale map keyed by your configured site languages.
Type: string
Example: ./images/theology.png
Required: false
An image that represents the category, such as a thumbnail, icon, or cover photo.
When provided, the CategoriesSection component can display categories with image previews.
This creates a more engaging, visually rich browsing experience.