Ignore:
Timestamp:
04/16/09 10:19:19 (3 years ago)
Author:
CrawfordCurrie
Message:

Item1383: removed support for settings in the plugin topic

File:
1 edited

Legend:

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

    r3416 r3456  
    22---+!! Edit Table Plugin 
    33 
    4 Edit tables in place, using edit fields and drop down boxes, without having to edit the complete topic.  
     4%SHORTDESCRIPTION% 
    55 
    66Simply add an *[&nbsp;Edit&nbsp;table&nbsp;]* button to an existing table by writing =%<nop>EDITTABLE{}%= directly above the table. This can be added to tables that are formatted with TablePlugin: add the =EDITTABLE= macro just above or below the =TABLE= tag. It can also be used without any =TABLE= tag. 
     
    149149---++ Plugin Settings 
    150150 
    151 Plugin settings are stored as [[%SYSTEMWEB%.PreferenceSettings][preference settings]]. To reference 
    152 a plugin setting write ==%<nop>&lt;plugin&gt;_&lt;setting&gt;%==, for example, ==%<nop>EDITTABLEPLUGIN_SHORTDESCRIPTION%== 
    153  
    154    * One line description, shown in the %SYSTEMWEB%.TextFormattingRules topic: 
     151You can override the default settings for the plugin by defining the following [[%SYSTEMWEB%.PreferenceSettings][preferences]]. 
     152<!-- 
    155153      * Set SHORTDESCRIPTION = Edit tables using edit fields, date pickers and drop down boxes 
    156  
    157    * Set DEBUG to 1 to get debug messages in =data/debug.txt=.  Default: =0= 
    158       * Set DEBUG = 0 
    159  
    160    * Set JAVASCRIPTINTERFACE to 1 to be able to directly move and delete row without page refresh. Can be overridden with parameter =javascriptinterface=. 
    161       * Set JAVASCRIPTINTERFACE = 1 
    162     
    163    * Default for change rows flag: =on=, =off=, =add= 
    164       * Set CHANGEROWS = on 
    165  
    166    * Default flag for quiet save option: =on= to show the Quiet Save button, =off= to hide 
    167       * Set QUIETSAVE = on 
    168  
    169    * Default edit button: Specify =button text=, or specify =alternate text, image URL=. Note: Texts inside =%<nop>MAKETEXT{}%= are translated into other languages. 
    170       * #Set EDIT_BUTTON = %MAKETEXT{"Edit table"}% 
    171       * Set EDIT_BUTTON = %MAKETEXT{"Edit this table"}%, %ATTACHURL%/edittable.gif 
    172       * Set SAVE_BUTTON = %MAKETEXT{"Save table"}% 
    173       * Set QUIET_SAVE_BUTTON = %MAKETEXT{"Quiet save"}% 
    174       * Set ADD_ROW_BUTTON = %MAKETEXT{"Add row"}% 
    175       * Set DELETE_LAST_ROW_BUTTON = %MAKETEXT{"Delete last row"}% 
    176       * Set CANCEL_BUTTON = %MAKETEXT{"Cancel"}% 
    177     
    178    * Default help texts 
    179       * Set INCLUDED_TOPIC_DOES_NOT_EXIST = <span class="foswikiAlert">%MAKETEXT{"Warning: 'include' topic does not exist!"}%</span> 
     154--> 
     155Note: Texts inside =%<nop>MAKETEXT{}%= are translated into other languages. 
     156| *Preference* | *Meaning* | *Default* | 
     157| EDITTABLEPLUGIN_JAVASCRIPTINTERFACE | Set to 0 to be disable the ability to directly move and delete row without page refresh. Can be overridden with parameter =javascriptinterface= | 1 | 
     158| EDITTABLEPLUGIN_CHANGEROWS | Default for change rows flag: =on=, =off=, =add= | on | 
     159| EDITTABLEPLUGIN_QUIETSAVE | Default flag for quiet save option: =on= to show the Quiet Save button, =off= to hide | on | 
     160| EDITTABLEPLUGIN_EDIT_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Edit this table"}%, %ATTACHURL%/edittable.gif | 
     161| EDITTABLEPLUGIN_SAVE_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Save table"}% | 
     162| EDITTABLEPLUGIN_QUIET_SAVE_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Quiet save"}% | 
     163| EDITTABLEPLUGIN_ADD_ROW_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Add row"}% | 
     164| EDITTABLEPLUGIN_DELETE_LAST_ROW_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Delete last row"}% | 
     165| EDITTABLEPLUGIN_CANCEL_BUTTON | Specify =button text=, or =alternate text, image URL=.  | %MAKETEXT{"Cancel"}% | 
     166| EDITTABLEPLUGIN_INCLUDED_TOPIC_DOES_NOT_EXIST | Default help texts | <span class="foswikiAlert">%MAKETEXT{"Warning: 'include' topic does not exist!"}%</span> | 
    180167    
    181168*Note:* The Plugin uses base settings like date format, language and style from the JSCalendarContrib. 
     
    192179 
    193180---++ Installation Instructions 
    194 Normally this plugin is distributed and automatically installed with Foswiki. The instructions below are meant for special installations. 
    195  
    196    1 Download the ZIP file from the Plugin web (see below) 
    197    1 Unzip ==%TOPIC%.zip== in your ($FOSWIKI_ROOT) directory. 
    198       * Alternatively, manually resolve the dependencies listed below. 
    199       %$DEPENDENCIES% 
    200    1 The Plugin depends on the =viewauth= script to authenticate the user. As described in %SYSTEMWEB%.AccessControl, copy the =view= script to =viewauth= (or better, create a symbolic link) and add =viewauth= to the list of authenticated scripts in the =.htaccess= file. 
    201    1 Visit =configure= in your installation, and enable the plugin in the ={Plugins}= section. 
    202  
     181%$INSTALL_INSTRUCTIONS% 
    203182Test if the Plugin is correctly installed: 
    204183   * Check above example if there is an *[&nbsp;Edit&nbsp;table&nbsp;]* button below the table in above example 
Note: See TracChangeset for help on using the changeset viewer.