| TwistyPlugin
A "twisty" is an interface toggle control to show and hide content. |
|
%TWISTY{
showlink="Show..." |
|
< < | hidelink="Hide |
> > | hidelink="Hide" |
| start="hide"
}%
my twisty content |
|
%TWISTY{
showlink="Show..." |
|
< < | hidelink="Hide |
> > | hidelink="Hide" |
| start="hide"
}%
my twisty content |
|
%TWISTY{
prefix="!!" |
|
> > | mode="div" |
| link="Header"
showimgleft="/wiki/twiki-6.1.0/pub/TWiki/TWikiDocGraphics/toggleopen.gif"
hideimgleft="/wiki/twiki-6.1.0/pub/TWiki/TWikiDocGraphics/toggleclose.gif" |
|
link |
Link label |
Link label for both show and hide links |
optional |
hidelink |
Link label |
Hide link label |
optional |
showlink |
Link label |
Show link label |
optional |
|
|
< < |
mode |
"div" or "span" |
Specify if the Twisty Toggle section will use a <div> or a <span> tag. |
optional, defaults to <span> |
|
> > |
mode |
"div" or "span" |
Specify if the Twisty Toggle section will use a <div> or a <span> tag. Note that if the contents contains block elements such as div , mode should be div as well to create valid HTML markup. |
optional, defaults to <span> |
|
|
showimgleft |
Image url |
Specify the url of an image that will be displayed with the show link at the left side of the link. You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic. |
optional, defaults to no image |
hideimgleft |
Image url |
Specify the url of an image that will be displayed with the hide link at the left side of the link. You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic. |
optional, defaults to no image |
showimgright |
Image url |
Specify the url of an image that will be displayed with the show link at the right side of the link. You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic. |
optional, defaults to no image |
|
|
- Syntax:
%TWISTYBUTTON{id="myid" ... }%
- Supported parameters:
|
|
< < |
mode |
"div" or "span" |
Specify if the Twisty button will use a <div> or a <span> tag |
optional, defaults to <span> |
|
> > |
mode |
"div" or "span" |
Specify if the Twisty button will use a <div> or a <span> tag. Note that if the contents contains block elements such as div , mode should be div as well to create valid HTML markup. |
optional, defaults to <span> |
- Example:
%TWISTYBUTTON{id="myid" link="more"}%%TWISTYTOGGLE{id="myid"}%content%ENDTWISTYTOGGLE%
|
|
|
|
|
|
< < |
mode |
"div" or "span" |
Specify if the Twisty Show link will use a <div> or a <span> tag |
optional, defaults to <span> |
|
> > |
mode |
"div" or "span" |
Specify if the Twisty Show link will use a <div> or a <span> tag. Note that if the contents contains block elements such as div , mode should be div as well to create valid HTML markup. |
optional, defaults to <span> |
|
|
img |
Image url |
Specify the url of an image that will be displayed at the right side of the link. You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic. |
optional, defaults to no image |
imgleft |
Image url |
Specify the url of an image that will be displayed at the left side of the link. You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic. |
optional, defaults to no image |
imgright |
Image url |
Specify the url of an image that will be displayed at the right side of the link. You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic. |
optional, defaults to no image |
|
|
|
|
< < |
mode |
"div" or "span" |
Specify if the Twisty Hide link will use a <div> or a <span> tag |
optional, defaults to <span> |
|
> > |
mode |
"div" or "span" |
Specify if the Twisty Hide link will use a <div> or a <span> tag. Note that if the contents contains block elements such as div , mode should be div as well to create valid HTML markup. |
optional, defaults to <span> |
|
|
img |
Image url |
Specify the url of an image that will be displayed at the right side of the link. You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic. |
optional, defaults to no image |
remember |
"on" , "off" |
If "on" , the Twisty state is remembered the next time the page is shown. If "off" , the stored setting will be cleared. Note: when used, think carefully about a unique name (id) for the Twisty, otherwise the cookie that is set might affect other Twisties with the same name. Also note that only interaction is stored, not the state of the Twisty when left unclicked. |
optional, no default |
start |
"hide" or "show" |
Initial state of the Twisty; this will override any setting stored in a cookie (see remember ). |
optional, default no initial state |
|
| |
|
< < |
mode |
"div" or "span" |
Specify if the Twisty Toggle section will use a <div> or a <span> tag. |
optional, defaults to <span> |
|
> > |
mode |
"div" or "span" |
Specify if the Twisty Toggle section will use a <div> or a <span> tag. Note that if the contents contains block elements such as div , mode should be div as well to create valid HTML markup. |
optional, defaults to <span> |
|
|
class |
CSS class name |
Class for content div or span |
optional, default none |
remember |
"on" , "off" |
If "on" , the Twisty state is remembered the next time the page is shown. If "off" , the stored setting will be cleared. Note: when used, think carefully about a unique name (id) for the Twisty, otherwise the cookie that is set might affect other Twisties with the same name. Also note that only interaction is stored, not the state of the Twisty when left unclicked. |
optional, no default |
start |
"hide" or "show" |
Initial state of the Twisty; this will override any setting stored in a cookie (see remember ). |
optional, default no initial state |
|
| Plugin Info
|
|
< < |
Copyright ©: |
2005 Rafael Alvarez; 2006, 2007 Arthur Clemens |
|
> > |
Copyright ©: |
2005 Rafael Alvarez; 2006-2008 Arthur Clemens |
|
|
License: |
GPL |
Dependencies: |
None |
|
|
< < |
Plugin Version: |
03 Aug 2008 (version 1.4.10) |
|
> > |
Plugin Version: |
10 Oct 2008 (version 1.4.12) |
|
|
Change History: |
<-- versions below in reverse order --> |
|
|
> > |
08 Oct 2008 |
1.4.11, 1.4.12 It is now possible to have a twisty on the same line without a linebreak. |
|
|
03 Aug 2008 |
1.4.10 TWiki 4.2.1 release version |
13 Dec 2007 |
1.4.9 fix to the loading order of javascript files in head |
24 Nov 2007 |
1.4.6 - 1.4.8 Arthur Clemens - Added format tokens. |
|