Skip to topic | Skip to bottom
APS Sahaja Yoga
You are here: APS Sahaja Yoga > TWiki Web > TwistyContrib r1 - 12 Sep 2005 - 02:01 - RafaelAlvarez?


Start of topic | Skip to actions

TwistyContrib

Summary

This contrib packages in a convenient way the Javascript library and the CSS file needed to implement TWisty Sections.

See the attached file for a demo and an example of usage.

To use the libraries, you must place the following scriplet either in the head section of the page (by modifying the TWikiSkins?) or putting it somewhere in the topic:

<style type="text/css" media="all">
@import url("%PUBURL%/TWiki/TwistyContrib/twist.css");
</style>

<script type="text/javascript" src="%PUBURL%/TWiki/TwistyContrib/twist.js"></script>

It's recommended to use the TWiki:Plugins.TwistyPlugin, as it ease the deployment and use of this contrib.

Caution: If the previous scriplet is put in the HEAD section of the page or the TWiki:Plugins.TwistyPlugin is used, it won't work if the <body onload=""> manager is set by the skin. Check the twist.js file for an idea on how to register an eventmanager for the onload event without overwriting the previous one.

This Contrib should works in all versions of TWiki. It has been tested against TWiki:Codev.CairoRelease and TWiki:Codev.DakarRelease.

Customization

Skins can customize the color of the twisti placeholder by modifiying the .twistyPlaceholder style.

Settings

    • Name of the perl package
    • Set STUB = TWiki::Contrib::TwistyContrib
  • One line description:
    • Set SHORTDESCRIPTION = Placeholder for the twisty javascript library.

Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip TwistyContrib.zip in your ($TWIKI_ROOT) directory. Content:
File: Description:
data/TWiki/TwistyContrib.txt NEW
lib/TWiki/Contrib/TwistyContrib.pm NEW
pub/TWiki/TwistyContrib/toggle-optm-jsoff-sep.html NEW
pub/TWiki/TwistyContrib/twist.css NEW
pub/TWiki/TwistyContrib/twist.js NEW
TwistyContrib_installer.pl Install script

  • Optionally, run TwistyContrib_installer to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
  • Alternatively, manually make sure the dependencies listed in the table below are resolved.
None

Demo & Text

If the contrib is properly installed, you should see a folding section bellow:

Unfold Fold


This is a folded text. Everything is OK.

Contrib Info

Authors: Javascript created by TWiki:Main.SamHasler, Contrib packaged by TWiki:Main.RafaelAlvarez
Copyright ©: 2005 Sam Hasler and Rafael Alvarez
License: GPL
Dependencies: None
12/09/2005 1.000 First Version
Home: http://TWiki.org/cgi-bin/view/Plugins/TwistyContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/TwistyContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/TwistyContribAppraisal

Related Topics: TWikiPreferences

I Attachment Action Size Date Who Comment
twist.csscss twist.css manage 0.2 K 11 Dec 2005 - 12:31 RafaelAlvarez? Style Sheet
toggle-optm-jsoff-sep.htmlhtml toggle-optm-jsoff-sep.html manage 1.7 K 11 Dec 2005 - 12:31 RafaelAlvarez? Example of usage
twist.jsjs twist.js manage 2.8 K 11 Dec 2005 - 12:31 RafaelAlvarez? Javscript library
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © 1993-2005 Associazione di Promozione Sociale "Sahaja Yoga" di Verona
http://www.sahajayogaverona.it - info@sahajayogaveronaPROTEZIONESPAMDACANCELLARE.it
Tel. 3476521542