%TWISTYSHOW{id="myid" ... }%
| Parameter | Description | Value |
|---|---|---|
id | Unique identifier. Used to link TWISTYSHOW, TWISTYHIDE and TWISTYTOGGLE | required |
link="Link Text" | The text to be used in the Twisty Show link | optional |
mode="div/span" | Specify if the Twisty Show link will use a <div> or a <span> tag | 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 |
%TWISTYSHOW{id="demo" link=" Click to Unfold " imgleft="%ICONURLPATH{toggleopen}%"}% expands to: <span id="demoshow" class="twistyMakeVisible"><a href="#" class="twistyTrigger"><img src="http://visiblearea.com/devtwiki/pub/TWiki/TWikiDocGraphics/toggleopen.gif" alt="" /><span class="twikiLinkLabel"> Click to Unfold </span></a></span>
%TWISTYHIDE{id="myid" ... }%
| Parameter | Description | Value |
|---|---|---|
id | Unique identifier. Used to link TWISTYSHOW, TWISTYHIDE and TWISTYTOGGLE | required |
link="Link Text" | The text to be used in the Twisty Hide link | optional |
mode="div/span" | Specify if the Twisty Hide link will use a <div> or a <span> tag | 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 |
%TWISTYHIDE{id="demo" link=" Click to Fold " imgleft="%ICONURLPATH{toggleclose}%"}% expands to: <span id="demohide" class="twistyHidden twistyMakeVisible"><a href="#" class="twistyTrigger"><img src="http://visiblearea.com/devtwiki/pub/TWiki/TWikiDocGraphics/toggleclose.gif" alt="" /><span class="twikiLinkLabel"> Click to Fold </span></a></span>
%TWISTYTOGGLE{id="myid"}%
| Parameter | Description | Value |
|---|---|---|
id | Unique identifier. Used to link TWISTYSHOW, TWISTYHIDE and TWISTYTOGGLE. | required |
mode="div/span" | Specify if the Twisty Toggle section will use a <div> or a <span> tag. | optional, defaults to <span> |
remember="on" | When the Twisty is clicked its state is remembered the next time the page is shown. 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. | optional, defaults to forget |
%TWISTYTOGGLE{id="demo" mode="div" remember="on"}% expands to: <div id="demotoggle" class="twistyMakeHidden twistyRememberState">
%ENDTWISTYTOGGLE% %ENDTWISTYTOGGLE% expands to: </div> if mode="div" was used in the last TWISTYTOGGLE,
%TWISTYBUTTON{id="myid" ... }%
| Parameter | Description | Value |
|---|---|---|
id | Unique identifier. Used to link TWISTYBUTTON and TWISTYTOGGLE | required |
link="Link Text" | The text to be used in the Twisty button link | optional |
hidelink="Link Text" | The text to be used in the Twisty hide link | optional |
showlink="Link Text" | The text to be used in the Twisty show link | optional |
mode="div/span" | Specify if the Twisty link will use a <div> or a <span> tag | 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 |
hideimg="image url" | Specify the image to be show in the Twisty hide link | optiona, defaults to img value |
showimg="image url" | Specify the image to be show in the Twisty show link | optional, defaults to img value |
%TWISTY{id="myid" ... }%
| Parameter | Description | Value |
|---|---|---|
| all parameters supported by TWISTYBUTTON | ||
mode="div/span" | Specify if the Twisty Toggle section will use a <div> or a <span> tag. | optional, defaults to <span> |
Click to show
Click to hide
%<plugin>_<setting>%, i.e. %TWISTYPLUGIN_SHORTDESCRIPTION%
TwistyPlugin.zip in your root ($TWIKI_ROOT) directory. Content: | File: | Description: |
|---|
TwistyPlugin_installer to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
configure in your TWiki installation, and enable the plugin in the {Plugins} section.
| Authors: | TWiki:Main.RafaelAlvarez |
| Copyright ©: | 2005 Rafael Alvarez |
| License: | GPL |
| Dependencies: | %$DEPENDENCIES% |
| 12/09/2005 | 1.000 First Version |
| Home: | http://TWiki.org/cgi-bin/view/Plugins/TwistyPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/TwistyPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/TwistyPluginAppraisal |