Ignore:
Timestamp:
11/25/08 00:57:30 (4 years ago)
Author:
KennethLavrsen
Message:

Item221: Finish the TWiki:Codev to Foswiki:xxx conv
Had to leave a few behind in docs that were to hard to convert
old extensions that probably are out of date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EditTablerowPlugin/data/TWiki/EditTablerowPlugin.txt

    r899 r929  
    22---+!! Edit Tablerow Plugin 
    33 
    4 This plugin allows you to edit TWiki tables row by row, using a form with appropriate controls for each field. If preceeded by an =%<nop>EDITTABLEROW{...}%= variable, tables have edit links for each row, and are optionally followed by an *[&nbsp;Edit&nbsp;table&nbsp;]* button. Multiple tables per topic are editable, but only one row at a time can be edited. 
     4This plugin allows you to edit Foswiki tables row by row, using a form with appropriate controls for each field. If preceeded by an =%<nop>EDITTABLEROW{...}%= variable, tables have edit links for each row, and are optionally followed by an *[&nbsp;Edit&nbsp;table&nbsp;]* button. Multiple tables per topic are editable, but only one row at a time can be edited. 
    55 
    66%TOC% 
     
    7474<table border="1" cellspacing="1" cellpadding="0"> 
    7575<tr><th class="twikiFirstCol" bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Nr</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Text field</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Drop down</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Mood</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Timestamp</a> </th></tr> 
    76 <tr><td class="twikiFirstCol" bgcolor="#FFFFFF"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">1</a> </td><td bgcolor="#FFFFFF"> hello table </td><td bgcolor="#FFFFFF"> one </td><td bgcolor="#FFFFFF"> <img src="%PUBURLPATH%/TWiki/SmiliesPlugin/smile.gif" alt="smile" title="smile" border="0" /> </td><td bgcolor="#FFFFFF"> 19 Mar 2005 23:21 </td></tr> 
    77 <tr><td class="twikiFirstCol" bgcolor="#FFFFCC"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">2</a> </td><td bgcolor="#FFFFCC"> &nbsp; </td><td bgcolor="#FFFFCC"> two </td><td bgcolor="#FFFFCC"> <img src="%PUBURLPATH%/TWiki/SmiliesPlugin/frown.gif" alt="frown" title="frown" border="0" /> </td><td bgcolor="#FFFFCC"> 19 Mar 2005 11:21 </td></tr> 
     76<tr><td class="twikiFirstCol" bgcolor="#FFFFFF"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">1</a> </td><td bgcolor="#FFFFFF"> hello table </td><td bgcolor="#FFFFFF"> one </td><td bgcolor="#FFFFFF"> <img src="%PUBURLPATH%/System/SmiliesPlugin/smile.gif" alt="smile" title="smile" border="0" /> </td><td bgcolor="#FFFFFF"> 19 Mar 2005 23:21 </td></tr> 
     77<tr><td class="twikiFirstCol" bgcolor="#FFFFCC"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">2</a> </td><td bgcolor="#FFFFCC"> &nbsp; </td><td bgcolor="#FFFFCC"> two </td><td bgcolor="#FFFFCC"> <img src="%PUBURLPATH%/System/SmiliesPlugin/frown.gif" alt="frown" title="frown" border="0" /> </td><td bgcolor="#FFFFCC"> 19 Mar 2005 11:21 </td></tr> 
    7878</table> 
    7979<form action="%SCRIPTURLPATH%/oops/Test/TableRowOne"> 
    80 <input type="image" src="%PUBURLPATH%/TWiki/EditTablePlugin/edittable.gif" alt="Edit this table" onclick="return(false);" /></form> 
     80<input type="image" src="%PUBURLPATH%/System/EditTablePlugin/edittable.gif" alt="Edit this table" onclick="return(false);" /></form> 
    8181 
    8282If you click on one of the links in the first column, say for the second row, you will be able to edit that table row in a form: 
     
    9090 
    9191   * One line description, shown in the %SYSTEMWEB%.TextFormattingRules topic: 
    92       * Set SHORTDESCRIPTION = Edit TWiki tables rows using a form 
     92      * Set SHORTDESCRIPTION = Edit Foswiki tables rows using a form 
    9393 
    9494   * Set DEBUG to 1 to get debug messages in =data/debug.txt=.  Default: =0= 
     
    100100   * Default edit button: Specify =button text=, or specify =alternate text, image URL= 
    101101      * Set EDITBUTTON = Edit table 
    102       * #Set EDITBUTTON = Edit this table, %PUBURL%/TWiki/EditTablePlugin/edittable.gif 
     102      * #Set EDITBUTTON = Edit this table, %PUBURL%/System/EditTablePlugin/edittable.gif 
    103103 
    104104   * Default edit link for row: Specify =button text=, or specify =alternate text, image URL=. If empty, create link from first field. 
    105105      * #Set EDITLINK = Edit 
    106       * #Set EDITLINK = Edit, %PUBURL%/TWiki/DocumentGraphics/edittopic.gif 
     106      * #Set EDITLINK = Edit, %PUBURL%/System/DocumentGraphics/edittopic.gif 
    107107 
    108108 
    109109---++ Limitations and Known Issues 
    110110 
    111    * This Plugin does not (yet) support TWiki table formatting like Multi-span cells (e.g. =| ... ||=) 
     111   * This Plugin does not (yet) support Foswiki table formatting like Multi-span cells (e.g. =| ... ||=) 
    112112   * You cannot put two =%<nop>EDITTABLE{}%= statements on the same line in the source 
    113113   * Defining the schema in the format of %SYSTEMWEB%.EditTablePlugin requires patching of =Form.pm= 
     
    116116---++ Plugin Installation Instructions 
    117117 
    118 __Note:__ You do not need to install anything on the browser to use this Plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.  
     118__Note:__ You do not need to install anything on the browser to use this Plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running.  
    119119 
    120120   * Download the ZIP file from the Plugin web (see below) 
     
    124124     | ==data/System/%TOPIC%.txt,v== | Plugin topic repository | 
    125125     | ==lib/Foswiki/Plugins/%TOPIC%.pm== | Plugin Perl module | 
    126      | ==pub/TWiki/%TOPIC%/*.jpg== | Screenshots for plugin topic | 
     126     | ==pub/System/%TOPIC%/*.jpg== | Screenshots for plugin topic | 
    127127     | ==bin/editTableRow== |  | 
    128128     | ==bin/uploadTableRow== |  | 
     
    131131   * Verify access and ownership settings for the new scripts. 
    132132   * Edit your .htaccess file to require a valid user for the included scripts (if needed). 
    133    * Apply the [[%ATTACHURL%/Form.pm.formdef_patch][attached patch]] to =lib/TWiki/Form.pm= if you want to use the schema definition in the style of %SYSTEMWEB%.EditTablePlugin 
     133   * Apply the [[%ATTACHURL%/Form.pm.formdef_patch][attached patch]] to =lib/Foswiki/Form.pm= if you want to use the schema definition in the style of %SYSTEMWEB%.EditTablePlugin 
    134134 
    135135 
     
    142142|  08 Sep 2006: | Use strict warnings. Fix handling of checkbox fields. Move to last edited row after save to avoid scrolling. Do not insert placeholder text in first field. | 
    143143|  01 Sep 2006: | Dakar port. Fix handling of date fields in Dakar. Allow editlink in tag. Move existing table to bottom of edit view. | 
    144 |  07 Jul 2005: | Remove further warning message (thanks to TWiki:Main/KennethLavrsen and TWiki:Main/CrawfordCurrie)   | 
     144|  07 Jul 2005: | Remove further warning message (thanks to Foswiki:Main/KennethLavrsen and Foswiki:Main/CrawfordCurrie)   | 
    145145|  30 Jun 2005: | Fix access control. Remove warning messages from apache log.   | 
    146146|  21 Apr 2005: | Fix to remove conflict with %<nop>TOC% rendering   | 
Note: See TracChangeset for help on using the changeset viewer.