Content

The Content HAPI component will pull data related to content pages from the Control Panel

Content has 3 main use cases:

  1. Blog - using the data-pv-type - list, you can pull back blog posts and create a blog page that contains all of the corresponding posts

  2. Rotators - using the data-pv-type=rotators, you can pull back rotators set in the Control Panel and create a rotating dynamic banner

  3. FAQ - using the data-pv-type=faq, you can pull back FAQs set in the Control Panel and create a FAQ page

<div data-pv-component="content" data-pv-type="list" 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