list

This will pull back all category data from the Control Panel.

The main use-case of this is to create a filtering system for whichever component that is also being used i.e. Events

<div data-pv-component="categories" data-pv-type="list" data-pv-object="abc">
    // Some code
</div>

Common HAPI elements used within the <div>:

  • {@category_description@} - this will return the category description

  • {@category_flag@} - this will return the category flag if set

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

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

  • {@activity_title@} - this will return the activity title

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

  • flag: 'featured'

  • returntotal: '999'

  • category_above: '999' - use this to filter out for a specific parent category

Last updated