
Pre-Requirements
- Install and enable Core Design Scriptegrator plugin.
Setup
- Install the plugin.
- Don't forget to publish the plugin.
Additional step
If you have issues with Page Break plugin, please set the plugin ordering in Plugin Manager to "10000". However you lost the other plugins based article text possibilities.
Usage
Open article to editation and write the following mark:
{faq category="22"}
or
{faq category="22, 23, 25"}
Please do not use more then 1 instance of FAQ plugin on each page (article).
Inline overrides - global
The default plugin configuration can be overwrite by the following inline overrides:
- category
Values: integer
Set custom category (ID).
{faq category="3"}
{faq category="1, 2"}
Use comma to display more sections or categories.
- uitheme
Values: smootness, ui-lightness, vader...
Theme for FAQ plugin based on jQuery UI ThemeRoller. The all allowed themes are stored in Scriptegrator plugin folder:
/plugins/system/cdscriptegrator/libraries/jquery/theme
- autoheight
Values: 1, 0
No allows to accordion panels to keep their native height.
- event
Values: click, mouseover
The event on which to trigger the accordion.
- collapsible
Values: 1, 0
Whether all the sections can be closed at once. Allows collapsing the active section by the triggering event (click is the default).
- icon_header_selected
Values: Icon class based on jQuery UI ThemeRoller.
Icon displayed in accordion header when accordion container is opened.
ExamplesDisplays section 2:
{faq section="2"}
Displays two categories, 5 and 8:
{faq category="5, 8"}
Use "ui-darkness" theme on FAQ plugin.
{faq theme="ui-darkness"}
Accordion is opened when user mouse over the header.
{faq event="mouseover"}
Displays "plus" icon in accordion header.
{faq icon_header="ui-icon-plus"}
|