Inline Tabs and Sliders
Last Updated on Saturday, 06 November 2010 23:38 Written by Matthew Faulds Friday, 13 August 2010 22:43
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.
- The content you wish to appears in tabs/sliders should be placed in a table with two columns
- Each row will form a tab or slider
- The title will be taken from the first column and the content from the second column
- All html tags are supported
- Plugins can be processed in the tab/slider contents (see below)
-
Please note these are experimental and may change in future.
- CHANGED FROM 0.9RC5 (backwards compatible) **
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.
{faq inline/tabs}
{/faq}
| Demonstration Tab 1 |
This is a test entry. please leave any comments in the forum |
| Demonstration Tab 2 | Another bit of test text |

Processing Plugins
If you wish to process content plugins on the tab/slider contents then you should use the syntax:
{faq inline/tabs/process}
You can also place plugin syntax in the tab/slider content. To do this you must convert { and } to [[ and ]] respectively. E.g. the code above is placed as [[faq inline/tabs/process]]
Introduced with FAQ Slider 0.9RC5 which allows embedded tables without breaking the inline content.
The difference is that you need to specify classes for each of the tr's and td's that make up your inline table. So, it would read something like:
table
tr class="faqslider"
td class="title"
\td
td class="content"
\td
\tr
\table
This means you can chuck any content you like in between those.
It also won't break any of the old stuff you have as if the new syntax isn't found, FAQ Slider defaults back to the old system.
The difference is that you need to specify classes for each of the tr's and td's that make up your inline table. So, it would read something like:
table
tr class="faqslider"
td class="title"
\td
td class="content"
\td
\tr
\table
This means you can chuck any content you like in between those.
It also won't break any of the old stuff you have as if the new syntax isn't found, FAQ Slider defaults back to the old system.
Login
Make a Donation...