Pre-Requirements
- Install and enable Core Design Scriptegrator plugin.
- Visit Scriptegrator plugin configuration and set the "Load jQuery to" option to "Site".
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).
K2 Component
Plugin supports K2 items too. Please use "moduleid" override (read info bellow) to load your items. However this option requires default "K2 Content" module and all K2 settings are adjustable via this module.
Integration with K2 component works in K2 component only. You can not load K2 item in generally Joomla! article.
Inline overrides - global
The default plugin configuration can be overwrite by the following inline overrides:
- section
Values: integer Set custom section (ID). {faq section="5"} {faq section="4, 5, 6"}
- 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.
Inline overrides - K2 Component
- moduleid
Values: integer "K2 Content" module ID. This option is specified for integration with K2 component. Note: "K2 Content" module can be unpublished. Please remember there is a support for articles, not Avatars, Tags or RSS feed.
Examples
Displays 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"}
K2 component - loads articles based on settings in K2 Content module {faq moduleid="10" theme="ui-lightness"}
|