business

This will pull back all directory profile data from the Control Panel.

The main use-case of depends on what directory profiles are being used for in the Portal. Some popular use-cases are: Staff/Team Members or Venues

<div data-pv-component="directory" data-pv-type="business" data-pv-object="abc">
    // Some code
</div>

Common HAPI elements used within the <div>:

  • {@about@} - this will return the directory profile description

  • {@business_email@} - this will return the business email

  • {@category_group@} - this will return the category group

  • {@category_name@} - this will return the category name

  • {@company_logo@} - this will return the profile's graphic

  • {@company_name@} - this will return the profile's name

  • {@phone_number@} - this will return the profile's phone number

  • {@website@} - this will return the profile's website

Common data-pv-parameters used within the <div>:

  • returntotal: '999'

  • category_no: '999' - use this to filter out for a specific category of directories

  • returnAttributes: true

  • returnLocations: true

  • returnDataAttributes: true

Last updated