HAPI Sample - Events Page

Build a custom events page (to view upcoming/past events) and a single event with this sample HAPI.


By using this sample code you can create a custom view running HAPI.  By simply creating a new page and then setting the marketing keyword to events it will automatically switch to your template. 


<section class="" id="events">
  <div class="j-card" data-pv-component="event" data-pv-object="dt" data-pv-parameters="{returnTotal:'8'}" data-pv-type="eventlist">
    <img alt="event graphic" class="image" src="{@event_graphic@}">
    <div class="details">
      <div class="j-row">
        <p class="j-date"><span class="day" data-pv-element="event_date" data-pv-formatter="date(ddd, MMM d)" style="font-weight:bold;">Day, Month ##</span> | <span class="time" data-pv-element="event_date" data-pv-formatter="date(time)">##:## ?M</span></p>
        <p class="tag" data-pv-element="category_name">Tag</p>
      </div>
      <h3 class="title"><a data-pv-element="event_title" href="/event/{@event_no@}">This is the title of the card</a></h3>
      <p class="description" data-pv-element="event_summary">TEXT HERE</p>
      <a class="ph-btn" href="/event/{@event_no@}">View Event</a>
    </div>
  </div>
</section>

As you can see in the div.j-card we are calling component event and type eventlist and returning the next 8 events.   As you loop through the data, you can see you can provide a combination of {@@} variables or data-pv-element for the object names. 

If you wanted to include past events, you could setup a 2nd section with new parameters including date_from and date_to.   In the event you wanted to create a dynamic filer, you can use the following date variables too.

  • 4/1/2024 12:00 AM-4/30/2024 11:59:59 PM
  • 5/1/2024 12:00 AM-5/31/2024 11:59:59 PM
  • 3/1/2024 12:00 AM-3/31/2024 11:59:59 PM
  • 4/25/2024 1:00:50 AM
  • 4/25/2024 1:00:50 AM-addDays(#)-
  • 4/25/2024 1:00:50 AM-addMonths(#)-
  • 4/25/2024 1:00:50 AM-addYears(#)-

So to filter for the past 30 days, you could do:

data-pv-parameters="{date_from: 3/26/2024 1:00:50 AM, date_to: 4/25/2024 1:00:50 AM}"

Additional Help Tutorials

Find more ways to grow on PeopleVine.

Configure Salto to Work with Peoplevine Check-In

Follow these steps to configure your Salto to auto Check-In members when they use a Salto keycard.

Posted January 12, 2024

Detailed Member Statements & Billing

Unveiling Peoplevine's Member Statements & Billing feature: a comprehensive tool ensuring utmost transparency, simplicity, and efficiency in every financial transaction for both members and operators.

Posted September 28, 2023

New and Improved Timeline View

Dive into Peoplevine's My Schedule Timeline View: a feature designed to bring unmatched convenience and clarity to members' and guests' schedules, centralizing everything from dining to events.

Posted September 28, 2023

Spa & Wellness Booking with Book4Time Integration

Experience the perfect synergy of Peoplevine and Book4Time: a collaboration that transforms spa and wellness bookings, merging front-end engagement with backend efficiency.

Posted September 28, 2023

Going Global

Discover how PeopleVine's "Global Network" solution is set to revolutionize the hospitality industry by unifying brand experiences across multiple properties, whether globally or within a local region, offering members a seamless digital experience and granting operators unparalleled insights.

Posted September 28, 2023

Override the Guest Pass E-mail with Template

You can replace the e-mail sent to a guest when a guest pass is issued while retaining the necessary links to ensure they can activate it.

Posted September 27, 2023

Transaction Reporting has an Upgrade

We updated the Transaction Reporting screen to provide you with the data necessary to provide a glimpse at your revenue and the necessary data to audit your financials.

Posted September 7, 2023

You Can Set the Time to Process Authorizations

When a charge is processed through your POS, the charge may be Authorized until we capture the tip or at the end of day to handle refunds or changes. In this case, you can now set the time as to when we will process your authorizations.

Posted August 28, 2023

Adding Your Alliants Integration

Follow these steps to connect Peoplevine with your Alliants account for messaging.

Posted August 28, 2023

Setup Your Membership Tiers Based on Age

You can enable your membership tier to be for members between certain ages, when they past that age, they will automatically migrate to the next age tier.

Posted August 22, 2023

Follow these steps to update your Twilio settings to ensure delivery

This article will overview how to setup your brand and campaigns for broader/better delivery.

Posted August 10, 2023

Select Which Transaction Types You Want to Sync with Quickbooks

You're able to select which types of transaction items you want to sync to Quickbooks.

Posted June 14, 2023

Configure your Member Portal to Show Spa and Wellness

Once your Spa and Wellness feature is enabled, you need to configure the following to display on your member portal.

Posted June 14, 2023

Setup a Temporary ID for Hotel Guests

You can allow hotel guests to act as a member during their time at your property by leveraging these settings.

Posted May 23, 2023

© Peoplevine 2024. Powered by PeopleVine. Terms of use | Privacy & cookies