| TwistyContrib |
|
> > | <--
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 |
| |
|
< < | This contrib packages in a convenient way the JavaScript library and the CSS file needed to implement Twisty sections. |
> > | Introduction |
| |
|
< < | 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. |
| |
|
< < | It is recommended to use the TwistyPlugin as it eases the deployment and use of this contrib.
This Contrib should work with TWiki 4 and newer. |
> > | 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. |
|
Usage examples |
|
Twisty made easy |
|
< < | 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). |
|
|
|
< < | 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!" |
| |
|
< < | 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. |
|
You Write |
|
< < | 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> |
|
|
|
< < | 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 Write |
|
> > | |
| In any topic, your users can now write things like this: |
|
< < |
- Brace and parenthesize in K&R style
|
> > |
- Brace and parenthesize in K&R style
|
|
more...
close
|
|
< < | 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. ... |
|
- Separate your control keywords from the following opening bracket more... close
|
|
< < | 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 |
|
> > | |
| |
|
< < | 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. ... |
|
- Separate your control keywords from the following opening bracket more... close
|
|
< < | 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 |
| Expand all
Collapse all |
|
< < | |
| Settings |
|
< < |
- Set SHORTDESCRIPTION = Twisty section javascript library to open/close content dynamically
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. |
> > |
- Set SHORTDESCRIPTION = Twisty section Javascript library to open/close content dynamically
|
| |
|
> > | 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 |
|
> > | |
| %*INSTALL_INSTRUCTIONS% |
|
< < | @import url("https://wiki.caida.org/twiki/pub/TWiki/TwistyContrib/twist.css"); |
> > | @import url("https://wiki.caida.org/twiki/pub/TWiki/TwistyContrib/twist.css"); |
| |
|
< < |
|
> > |
|
| |
|
< < | |
| Contrib Info |
|
< < |
Authors: |
JavaScript written by TWiki:Main.ArthurClemens; Contrib packaged by TWiki:Main.RafaelAlvarez; original JavaScript written by TWiki:Main.SamHasler. |
Copyright ©: |
2005 Sam Hasler and Rafael Alvarez; 2006,2007 Arthur Clemens |
|
> > |
Authors: |
JavaScript written by TWiki:Main/ArthurClemens; Contrib packaged by TWiki:Main/RafaelAlvarez; original JavaScript written by TWiki:Main/SamHasler. |
Copyright: |
© 2005 Sam Hasler and Rafael Alvarez; © 2006-2007 Arthur Clemens, © 2005-2010 TWiki:TWiki/TWikiContributor |
|
|
License: |
GPL |
Dependencies: |
Name | Version | Description |
---|
TWiki::Plugins::BehaviourContrib | >=1.000 | Required | |
|
|
< < |
Plugin Version: |
20 Jun 2007 (version 1.4.1) |
Version: |
17595 (02 Sep 2009) |
|
> > |
Plugin Version: |
2010-05-15 (version 1.5) |
Version: |
18692 (2010-05-29) |
|
|
Change History: |
<-- versions below in reverse order --> |
|
|
> > |
2010-05-15: |
TWikibug:Item6433 - doc improvements; replacing TWIKIWEB with SYSTEMWEB |
|
|
20 Jun 2007 |
1.4 Arthur Clemens - Updated script so TwistyPlugin can work without extra javascript 'init' calls. |
18 Jun 2007 |
1.3 Arthur Clemens - Updated with TWiki 4 JavaScript files. |
25 Oct 2006 |
1.2 Arthur Clemens - Updated JavaScript to support TwistyPlugin version 1.2 |
|
|
|
|
< < | Related Topics: TWikiPreferences |
> > | Related Topics: TwistyPlugin, TWikiPreferences |
|
META FILEATTACHMENT |
attachment="twist.js" attr="" comment="!JavaScript library" date="1126427179" name="twist.js" path="twist.js" size="3441" stream="twist.js" user="TWikiContributor" version="0" |
META FILEATTACHMENT |
attachment="twist.css" attr="" comment="Style Sheet" date="1126427224" name="twist.css" path="twist.css" size="122" stream="twist.css" user="TWikiContributor" version="0" |
|