| Edit Table Plugin
Edit TWiki tables in place, using edit fields and drop down boxes, without having to edit the complete topic. |
|
Using TWiki Variables in the Format Parameter |
|
< < | TWiki variables like %Y% in <initial value> (of text input field) and <label text> (of fixed label) will get expanded when a new row is added. |
> > | By default, variables in <initial value> (of text input field) and <label text> (of fixed label) get expanded when a new row is added. This can be used for example to add a timestamp to a label. You can escape characters with format tokens if you do not want that. |
| |
|
< < | This is useful to write variables like dates into the table.
For example:
%EDITTABLE{ format="| label, 0, %SERVERTIME{"$day $mon $year $hour:$min"}% |" }%
... will get expanded to 31 Oct 2024 19:50 when the new row is created.
|
> > | Any TWiki variable inside a table cell will be preserved. For instance, %TOPIC% will not get expanded to the current topic name. |
| |
|
< < | To prevent variable expansion: escape the format variable with formatting tokens (particularly $percnt ).
For example:
%EDITTABLE{ format="| text, 20, $percntY$percnt |" }%
... will create a new row with $percntY$percnt . In view mode this is temporarily translated to %Y% and subsequent rendered as .
|
> > | The format tokens are the same as with FormattedSearch: |
| |
|
> > |
Escape: |
Expands To: |
$n or $n() |
New line. Use $n() if followed by alphanumeric character, e.g. write Foo$n()Bar instead of Foo$nBar |
$nop or $nop() |
Is a "no operation". |
$quot |
Double quote (" ) |
$percnt |
Percent sign (% ) |
$dollar |
Dollar sign ($ ) |
|
|
|
| |
|
> > | |
|
<-- /editTable --> |
|
- Set DEBUG to 1 to get debug messages in
data/debug.txt . Default: 0
|
|
< < |
- Set JAVASCRIPTINTERFACE to 1 to be able to directly move and delete row without page refresh.
|
> > |
- Set JAVASCRIPTINTERFACE to 1 to be able to directly move and delete row without page refresh. Can be overridden with parameter
javascriptinterface .
|
|
-
- Set JAVASCRIPTINTERFACE = 1
- Default for change rows flag:
on , off , add
|
|
- This Plugin does not support TWiki table formatting like Multi-span cells (e.g.
| ... || ) and cell justification (e.g. | centered | right | )
- There is a performance issue when editing a large table, say, with more then 50 rows
|
|
< < |
- Variables like
%ATTACHURL% get expanded unless they are in a label
|
|
- You cannot put two
%EDITTABLE{}% statements on the same line in the source
- You can include %-vars now in select values, by quoting them with <nop>, as in %<nop>X% for %X%, say for instance:
select,1,%<nop>X%,%<nop>Y%
|
| Plugin Info
|
|
< < |
|
> > |
|
|
|
|
< < |
Plugin Version: |
4.7.10 (08 Jan 2008) |
|
> > |
Plugin Version: |
4.8.4 (03 Aug 2008) |
|
|
Change History: |
<-- specify latest version first --> |
|
|
> > |
03 Aug 2008: |
4.8.4 TWiki 4.2.1 release version |
19 Jul 2008: |
4.8.3 Bugfix release |
20 Mar 2008: |
4.8: Arthur Clemens: Code refactoring; disabled table sort when editing; removed usage of $percnt to prevent variable expansion (is now done automatically); made Javascript interface aware of headers and footers, and of changerows="off" ; improved feedback on row move. |
|
|
25 Dec 2007: |
4.7.1: Arthur Clemens: Added warning if include parameter topic does not exist. |
22 Dec 2007: |
4.7: Arthur Clemens: Changed handling of escaped variables. To escape TWiki variable, use formatting tokens such as $percnt . |
16 Dec 2007: |
4.6: Kenneth Lavrsen: The plugin prevents TablePlugin from initsorting the table being edited. This is done by temporarily appending the attribute disableallsort="on" to the TABLE tag of a table being edited. Additionally all header sorting is disabled while editing a table by setting a hidden formfield sort to "off". Disabling sorting while editing is needed now that the EditTablePlugin supports moving rows up and down. |
|
|
Related Topics: VarEDITTABLE, TWikiPreferences, TWikiPlugins |
|
< < | -- TWiki:Main/PeterThoeny - 07 Oct 2007 |
|
META FILEATTACHMENT |
attr="h" comment="" date="1071283396" name="EditTablePluginCalendarExample.gif" path="EditTablePluginCalendarExample.gif" size="7823" user="TWikiContributor" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="Screenshot" date="1077050633" name="ScreenshotEditCell1.gif" path="ScreenshotEditCell1.gif" size="2017" user="TWikiContributor" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="Screenshot" date="1077050702" name="ScreenshotEditCell2.gif" path="ScreenshotEditCell2.gif" size="3199" user="TWikiContributor" version="1.1" |
|