Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TwistyContrib | |||||||||||
Added: | |||||||||||
> > | <-- Contributions to this TWiki extension are appreciated. Please update the contrib page at http://twiki.org/cgi-bin/view/Plugins/TwistyContribTwisty section Javascript library to open/close content dynamically | ||||||||||
Changed: | |||||||||||
< < | This contrib packages in a convenient way the JavaScript library and the CSS file needed to implement Twisty sections. | ||||||||||
> > | Introduction | ||||||||||
Changed: | |||||||||||
< < | TwistyContrib is installed by default in TWiki 4 and used by Twisty Plugin![]() | ||||||||||
> > | This contrib packages in a convenient way the JavaScript library and the CSS file needed to implement Twisty sections. | ||||||||||
Changed: | |||||||||||
< < | It is recommended to use the TwistyPlugin as it eases the deployment and use of this contrib.
This Contrib should work with TWiki 4![]() | ||||||||||
> > | TwistyContrib is installed by default in TWiki and used by TwistyPlugin. | ||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > | It is recommended to use the TwistyPlugin as it eases the deployment and use of this contrib. | ||||||||||
Usage examples | |||||||||||
Line: 53 to 63 | |||||||||||
Twisty made easy | |||||||||||
Changed: | |||||||||||
< < | Manual written by Harald Joerg![]() ![]() | ||||||||||
> > | Manual written by Harald Joerg![]() | ||||||||||
Changed: | |||||||||||
< < | Some of my TWiki users are impressed by the optical effect of what can be done with TWiki:Plugins.TwistyPlugin![]() | ||||||||||
> > | Some of my TWiki users are impressed by the optical effect of what can be done with TwistyPlugin - and they keep asking me: "How do I do that? I don't understand the documentation, and I don't understand the raw text of your topics!" | ||||||||||
Changed: | |||||||||||
< < | They indeed have a point here. The docs aren't easily understood. It isn't easy to pick all the variables needed from a single example, and just copypasting sometimes fails in embarrassing ways if non-unique id attributes are present in a topic. Maybe it is easy for a power user, but it surely isn't easy enough. There ought to be a way to make it easier. | ||||||||||
> > | They indeed have a point here. The docs aren't easily understood. It isn't easy to pick all the variables needed from a single example, and just copy&pasting sometimes fails in embarrassing ways if non-unique id attributes are present in a topic. Maybe it is easy for a power user, but it surely isn't easy enough. There ought to be a way to make it easier. | ||||||||||
Well, here you are. | |||||||||||
Line: 66 to 76 | |||||||||||
You Write | |||||||||||
Changed: | |||||||||||
< < | In your Main.TWikiPreferences write: | ||||||||||
> > | In your Main.TWikiPreferences write: | ||||||||||
* Set FLIP = <span id="twid_%CALC{$SETM(twisty_id, + 1)$GET(twisty_id)}%show" class="twistyTrigger twistyMakeVisible"> <a href="#">more...</a> | |||||||||||
Line: 77 to 88 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | ![]() | ||||||||||
> > | ![]() | ||||||||||
Your Users Write | |||||||||||
Added: | |||||||||||
> > | |||||||||||
In any topic, your users can now write things like this: | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
more...
close
| |||||||||||
Changed: | |||||||||||
< < | When setting out a code block, use the K&R style of bracketing. That is, place the opening brace at the end of the construct that controls the block. ... | ||||||||||
> > | When setting out a code block, use the K&R style of bracketing. That is, place the opening brace at the end of the construct that controls the block. ... | ||||||||||
Changed: | |||||||||||
< < | Control structures regulate the dynamic behaviour of a program, so the keywords of control structures are the most critical components of a program. ... | ||||||||||
> > | Control structures regulate the dynamic behavior of a program, so the keywords of control structures are the most critical components of a program. ... | ||||||||||
Line: 97 to 105 | |||||||||||
You See | |||||||||||
Added: | |||||||||||
> > | |||||||||||
Changed: | |||||||||||
< < | When setting out a code block, use the K&R style of bracketing. That is, place the opening brace at the end of the construct that controls the block. ... | ||||||||||
> > | When setting out a code block, use the K&R style of bracketing. That is, place the opening brace at the end of the construct that controls the block. ... | ||||||||||
Changed: | |||||||||||
< < | Control structures regulate the dynamic behaviour of a program, so the keywords of control structures are the most critical components of a program. ... | ||||||||||
> > | Control structures regulate the dynamic behaviour of a program, so the keywords of control structures are the most critical components of a program. ... | ||||||||||
All on, all off | |||||||||||
Line: 137 to 141 | |||||||||||
Expand all Collapse all | |||||||||||
Deleted: | |||||||||||
< < | |||||||||||
Settings | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
Added: | |||||||||||
> > | You can also set the global TWiki variable TWISTYCONTRIB_DEBUG to 1 to make the contrib use uncompressed Javascript sources, in the event of problems. | ||||||||||
Installation Instructions | |||||||||||
Added: | |||||||||||
> > | |||||||||||
%*INSTALL_INSTRUCTIONS%
| |||||||||||
Changed: | |||||||||||
< < | @import![]() | ||||||||||
> > | @import![]() | ||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > | |||||||||||
Deleted: | |||||||||||
< < | |||||||||||
Contrib Info | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 180 to 181 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | Related Topics: TWikiPreferences | ||||||||||
> > | Related Topics: TwistyPlugin, TWikiPreferences | ||||||||||
|