URL Parameters

Certain HAPI elements can be passed in via URL parameters and used to filter, sort, or augment the data displayed on the page

If the URL parameter is set in the data-pv-parameter, it will place it into the query if not it will default to 0

<div data-pv-component="directory" data-pv-type="business" data-pv-parameters="{business_no: {q:business_no:0@}">
    // Some code
</div>

Common HAPI elements used within the URL:

  • {@q:category_no:@}

  • {@q:business_no@}

  • {@q:event_no@}

  • {@q:schedule_item_no@}

  • {@q:from_date@}

  • {@q:to_date@}

  • {@q:start_date@}

  • {@q:end_date@}

Last updated