Hi Rafael, here's a
TwistyPlugin.diff that implements
- TWISTYBUTTON: shorthand for TWISTYSHOW & TWISTYHIDE
- TWISTY: shorthand for TWISTYSHOW & TWISTYHIDE & TWISTYTOGGLE
This, for example, comes in handy if you have the same link text in hide and show links, but
don't want to "compute" it twice in a TWikiApplication. Additionally, the parameters have
been extended to be still able to specify different values for images and links for each mode
(showimg, hideimg, showlink, hidelink, etc.) Well and TWISTY...ENDTWISTY is just the all-in-one approach where the link text and the toggled content section are next to each other which is a very
common use case.
Here's a demo
using twisties to fold/unfold threaded comments.
Have a look.
Btw. you should fix the copyright notion in
TwistyPlugin.pm
. This is still the default copy-pasted one
from
EmtpyPlugin.pm
--
MichaelDaum - 23 Nov 2005
(from
http://twiki.org/cgi-bin/view/Plugins/TwistyPluginDev)
applying
http://twiki.org/p/pub/Plugins/TwistyPluginDev/TwistyPlugin.diff
WN
committed SVN:7627
WN