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/TwistyContrib or provide feedback at http://twiki.org/cgi-bin/view/Plugins/TwistyContribDev. If you are a TWiki contributor please update the extension in the SVN repository. -->Twisty 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. | ||||||||||
Added: | |||||||||||
> > | TwistyContrib is installed by default in TWiki and used by TwistyPlugin. | ||||||||||
It is recommended to use the TwistyPlugin as it eases the deployment and use of this contrib. | |||||||||||
Deleted: | |||||||||||
< < | This Contrib should work with TWiki 4 and newer. | ||||||||||
Usage examplesIf the contrib is properly installed (and JavaScript is enabled in your browser) you should see two folding sections below. | |||||||||||
Line: 53 to 63 | |||||||||||
Twisty made easy | |||||||||||
Changed: | |||||||||||
< < | Manual written by Harald Joerg. Examples require Spreadsheet Plugin to work (installed by default). | ||||||||||
> > | Manual written by Harald Joerg. Examples require SpreadSheetPlugin to work (installed by default). | ||||||||||
Changed: | |||||||||||
< < | Some of my TWiki users are impressed by the optical effect of what can be done with TWiki:Plugins.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!" | ||||||||||
> > | 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: | |||||||||||
< < | You can include the text in a verbatim block if you want (like I have done here). Additionally I've added plenty of newlines and spaces to make it readable. This works, and you don't have to care for invalid HTML! | ||||||||||
> > | You can include the text in a verbatim block if you want (like I have done here). Additionally I've added plenty of newlines and spaces to make it readable. This works, and you don't have to care for invalid HTML! | ||||||||||
Your Users WriteIn 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. ... | ||||||||||
You See | |||||||||||
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: 142 to 143 | |||||||||||
Settings | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
Changed: | |||||||||||
< < | 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. | ||||||||||
> > | 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 | |||||||||||
Line: 152 to 153 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | @import url("https://www.lanis.nl/pub/TWiki/TwistyContrib/twist.css"); | ||||||||||
> > | @import url("https://www.lanis.nl/pub/TWiki/TwistyContrib/twist.css"); | ||||||||||
Changed: | |||||||||||
< < | |||||||||||
> > | |||||||||||
Contrib Info | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 180 to 181 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | Related Topics: TWikiPreferences | ||||||||||
> > | Related Topics: TwistyPlugin, TWikiPreferences | ||||||||||
|