Introduction
With the Categories API, you can create and assign various categories to their events. You can use this API to display similar events on different site pages and sorting events in your dashboard. For example, you can create separate pages for jazz, blues, and folk events, but also pages for different venues. The same jazz event can be displayed on your jazz page and also on your downtown location page.
The Categories API allows you to:
- Assign/unassign events to a category or multiple categories.
- Create, delete, and update categories.
- Reorder events that are assigned to the same category on the Events widget.
- Get the details about all categories.
Before you begin
It’s important to note the following points before starting to code:
- Install the Wix Events & Tickets app from Wix App Market.
- To use the Categories API, import
{ categories }
from thewix-events.v2
module:
javascript | Copy Codeimport { categories } from 'wix-events.v2';
Terminology
- Category: A way to organize or classify events based on their characteristics or themes.
- Event: A gathering organized by an individual or business for a group of people.
Was this helpful?