How do you use FAQ Slider? (Expert)

FAQ Slider can be extended in many ways. The expert syntax is as follows:

{faqslider source/type/option}position{/faqslider}

source can be either art for articles, mod for modules, inline for inline text or section for articles and categories in a section
type can be either sliders or tabs
option can be expand, nested or insert
position is either the article category or module position that the articles or modules will be displayed from. This does not have to be an exact match: top would match all top rated. The value entered can relate to more than one category name or module position but it cannot match the category containing the article the plugin code is placed within.

This allows you to override the default settings. You do not have to use the full syntax every time either.
Examples below:

{faqslider art}position{/faqslider} will result in: source = art, type = default. This will force the use of articles displayed in the default method.

{faqslider art/sliders}position{/faqslider} will result in: source = art, type = sliders. This will force the use of articles displayed in tabs.

{faqslider tabs}position{/faqslider} will result in: source = default, type = tabs. This will force the display of content from the default source in tabs.

{faqslider mod/tabs}position{/faqslider} will result in: source = mod, type = tabs. This will force the display of modules from the position in tabs.

You can also set the sliders to load all closed in the parameters.

 

Alternative Slider Script

If you like, you can turn off the native Mootools sliders. The plugin will then use an alternative script (see here) which will allow you to do the following:

  • auto-focus the window on the last clicked slider
  • expand/collapse all using the syntax mentioned above. Note: you must also activate expand/collapse in the parameters.

Setting option to expand is only for use with the alternative script and should only be used once on a page. It inserts expand all/collapse all links. If used more than once, the additional expand/collapse links will not work. It can be used as follows:

 

{faqslider art/sliders/expand}position{/faqslider} will result in: source = art, type = sliders, option = expand. This will force the use of articles displayed in tabs from categories that match "position" with an expand/collapse all link

 

 

New feature - inline text **SYNTAX HAS CHANGED**

If you would like to use the plugin for inline placement of tabs and sliders, you will need to format your text using the following rules. Please note these are experimental and may change in future.

The content you wish to appears in tabs/sliders should be placed within a two column table. The title will be taken from the first column and the content to go inside the tab or slider will be taken from the second column. All html tags are supported.

An example is below. If you select the example text, paste it into an article and save the article you should see two tabs titled Demonstration Tab 1 and 2 as shown in the image.

{faqslider inline/tabs}

Demonstration Tab 1 This is a test entry.
please leave any comments in the forum
Demonstration Tab 2  Another bit of test text

{/faqslider}

Inline tabs example

 

Login

Make a Donation...

PayPal Donate

 

© 2009 Content: TrafalgarDesign. Template: Afterburner.