- Timestamp:
- 11/25/08 00:57:30 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EditTablerowPlugin/data/TWiki/EditTablerowPlugin.txt
r899 r929 2 2 ---+!! Edit Tablerow Plugin 3 3 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 *[ Edit table ]* button. Multiple tables per topic are editable, but only one row at a time can be edited.4 This 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 *[ Edit table ]* button. Multiple tables per topic are editable, but only one row at a time can be edited. 5 5 6 6 %TOC% … … 74 74 <table border="1" cellspacing="1" cellpadding="0"> 75 75 <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"> </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"> </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> 78 78 </table> 79 79 <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> 81 81 82 82 If 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: … … 90 90 91 91 * One line description, shown in the %SYSTEMWEB%.TextFormattingRules topic: 92 * Set SHORTDESCRIPTION = Edit TWiki tables rows using a form92 * Set SHORTDESCRIPTION = Edit Foswiki tables rows using a form 93 93 94 94 * Set DEBUG to 1 to get debug messages in =data/debug.txt=. Default: =0= … … 100 100 * Default edit button: Specify =button text=, or specify =alternate text, image URL= 101 101 * Set EDITBUTTON = Edit table 102 * #Set EDITBUTTON = Edit this table, %PUBURL%/ TWiki/EditTablePlugin/edittable.gif102 * #Set EDITBUTTON = Edit this table, %PUBURL%/System/EditTablePlugin/edittable.gif 103 103 104 104 * Default edit link for row: Specify =button text=, or specify =alternate text, image URL=. If empty, create link from first field. 105 105 * #Set EDITLINK = Edit 106 * #Set EDITLINK = Edit, %PUBURL%/ TWiki/DocumentGraphics/edittopic.gif106 * #Set EDITLINK = Edit, %PUBURL%/System/DocumentGraphics/edittopic.gif 107 107 108 108 109 109 ---++ Limitations and Known Issues 110 110 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. =| ... ||=) 112 112 * You cannot put two =%<nop>EDITTABLE{}%= statements on the same line in the source 113 113 * Defining the schema in the format of %SYSTEMWEB%.EditTablePlugin requires patching of =Form.pm= … … 116 116 ---++ Plugin Installation Instructions 117 117 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. 119 119 120 120 * Download the ZIP file from the Plugin web (see below) … … 124 124 | ==data/System/%TOPIC%.txt,v== | Plugin topic repository | 125 125 | ==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 | 127 127 | ==bin/editTableRow== | | 128 128 | ==bin/uploadTableRow== | | … … 131 131 * Verify access and ownership settings for the new scripts. 132 132 * 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%.EditTablePlugin133 * 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 134 134 135 135 … … 142 142 | 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. | 143 143 | 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) | 145 145 | 30 Jun 2005: | Fix access control. Remove warning messages from apache log. | 146 146 | 21 Apr 2005: | Fix to remove conflict with %<nop>TOC% rendering |
Note: See TracChangeset
for help on using the changeset viewer.
