optipub-faqs

This "optipub-element" retrieves all of the frequently asked questions for a specific publication. Check out Getting Started With OptiPub Elements first.

766

📘

jQuery Recommended

The default template used in this element uses classes and functionality that works best with jQuery and Bootstrap4 JavaScript. Check out the Bootstrap Documentation to learn how to incorporate that into your website.

You do not have to use jQuery, but you will be responsible for handling the additional functionality or overwriting the template.

Usage

❗️

Required Property

The optipub-faqs element requires a "publication-id" property to be defined on the element.

<optipub-faqs publication-id="1"></optipub-faqs>

Custom Properties

PropertyDescriptionExample
"open-id"Used to choose which question(s) are expanded on page load.open-id="1,2"
:open-id="[3,4]"

Complete Example

<optipub-faqs
                 publication-id="1"
                 open-id="1"
                 columns="question,answer,active"
                 sort="rank|asc"
                 per-page="20"
                 page="1"
></optipub-faqs>