optipub-faqs
This "optipub-element" retrieves all of the frequently asked questions for a specific publication. Check out Getting Started With OptiPub Elements first.
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
Property | Description | Example |
---|---|---|
"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>
Updated 11 months ago
What’s Next