Events

The Events HAPI component will pull data related to events from the Control Panel

Events are a one-to-many relationship, so as long as the use-case matches that relationship type, they can be repurposed for multiple use-cases.

The main use-case for events is events. However, you could also use events for another use-case like Classes since it still is a one-to-many relationship, it's just the verbiage is presented differently to the end-user.

The 3 data-pv-type values are:

  1. eventList - this will display a list of upcoming events based on the query string and/or data-pv-parameters

  2. eventView - this will display the details of a specific event

  3. attendees - this will display event and ticket info for a specific member

<div data-pv-component="event" data-pv-type="eventList" data-pv-object="abc">
    // Some code
</div>

The code above has data-pv-object so you will be able to see all data pulled by typing "abc" into the developer console.

Last updated