Ignore:
Timestamp:
04/15/09 16:59:44 (3 years ago)
Author:
CrawfordCurrie
Message:

Item1383: make plugin get its preferences from global preferences, instead of from the plugin topic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TwistyPlugin/data/System/TwistyPlugin.txt

    r3416 r3449  
    569569---++ Plugin Settings 
    570570 
    571 Plugin settings are stored as [[%SYSTEMWEB%.PreferenceSettings][preference settings]]. To reference 
    572 a plugin setting write ==%<nop>&lt;plugin&gt;_&lt;setting&gt;%==, i.e. ==%<nop>TWISTYPLUGIN_SHORTDESCRIPTION%== 
    573  
    574    * Set TWISTYSHOWLINK = %MAKETEXT{"More..."}% 
    575       * For example: =More...= 
    576    * Set TWISTYHIDELINK = %MAKETEXT{"Close"}% 
    577       * For example: =Close= 
    578    * Set TWISTYMODE =  
    579       * Either =div= or =span=; =span= if nothing set 
    580    * Set TWISTYREMEMBER =  
    581       * Either =on= or =off=; default is not specified. If set to =on= all Twisty states will be stored in a FOSWIKIPREF cookie; if set to =off= the FOSWIKIPREF cookie will be cleared 
    582  
     571You can override some default settings in the plugin by setting the following [[%SYSTEMWEB%.PreferenceSettings][preferences]]. 
     572| *Preference* | *Meaning* | *Default* | 
     573| =TWISTYSHOWLINK= | For example: =More...= | %MAKETEXT{"More..."}% | 
     574| =TWISTYHIDELINK= | For example: =Close= | %MAKETEXT{"Close"}% | 
     575| =TWISTYMODE= | Either =div= or =span= | =span= | 
     576| =TWISTYREMEMBER= | Either =on= or =off=. If set to =on= all Twisty states will be stored in a FOSWIKIPREF cookie; if set to =off= the FOSWIKIPREF cookie will be cleared | not specified | 
     577 
     578<!-- 
    583579   * Set SHORTDESCRIPTION = Twisty section !JavaScript library to open/close content dynamically 
    584    * Set DEBUG = 0 
     580--> 
    585581    
    586582---++ Plugin Installation Instructions 
    587    * Download the ZIP file from the Plugin web (see below) 
    588    * Unzip it in your Foswiki installation directory. Content:  
    589      | *File:* | *Description:* | 
    590 %$MANIFEST% 
    591  
    592    * Optionally, if it exists, run ==%TOPIC%_installer== to automatically check and install other Foswiki modules that this module depends on. You can also do this step manually. 
    593    * Alternatively, manually make sure the dependencies listed in the table below are resolved. 
    594 %$DEPENDECIES% 
    595    * Visit =configure= in your Foswiki installation, and enable the plugin in the {Plugins} section. 
    596  
     583%$INSTALL_INSTRUCTIONS% 
    597584 
    598585---++ Plugin Info 
Note: See TracChangeset for help on using the changeset viewer.