• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

ItemTemplate
Summary Twisty shorthands
ReportedBy WillNorris
Codebase

AppliesTo Extension
Component TwistyPlugin
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins 7627
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2005-11-23 - WillNorris
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback