| Name | Table Plugin |
|---|---|
| Vendor | Bob Swift and other contributors |
| Authors | Bob Swift |
| Homepage | http://confluence.atlassian.com/display/CONFEXT/Table+Plugin |
| Issue Management | http://developer.atlassian.com/jira/browse/TBL |
| Categories | Content Macros |
| Version | 3.3.1 |
| Availability | Confluence v2.4.2 to v2.10-m1 |
| State | Stable |
| Support |
|
| License | Freeware / Open Source (BSD) |
| Price | Free |
| Release Docs | http://confluence.atlassian.com/display/CONFEXT/Table+Plugin |
| Java API Docs | n/a |
| Download Source | http://svn.atlassian.com/svn/public/contrib/confluence/table-plugin/trunk |
| Download JAR | table-plugin-3.3.1.jar |
Additions and corrections to above
| JVM requirements | Java 1.4 and above | ||
|---|---|---|---|
| Installation requirements | or upload from Confluence's administration console.
|
Description
A collection of macros dealing with enhanced table capability in Confluence.
Macros
- CSV Macro - Convert comma separated (csv) and other delimited data into a Confluence table.
- Table-plus macro - Adds column sorting and other attributes to wiki or other tables
Common table based capabilities and parameters
A number of macros that produce or modify tables share common capabilities. This page documents the behavior and parameters for these capabilities. A JavaScript enabled browser is required to enable these capabilities.
Macros that include this support
Capabilities
- Column sorting - sort a column by clicking on column heading. Clicking again will reverse the order. Auto sorting before display
- Row highlighting on mouse over - row is highlighted when mouse goes over any row element for non-heading rows
- Column attributes - ability to set the display attributes (color, font) on a column basis
- Auto numbering - ability to automatically add a leading column with the data row count.
Parameters
- heading - Number of rows to be considered heading rows (default is 1 row). Specify heading=false or heading=0 to not show any heading lines. Heading rows do not participate in sorting.
- footing - Number of rows to be considered footing rows (default is 0). Footing rows do not participate in sorting. An auto total row is automatically treated as a footing row.
- enableSorting - Set enableSorting=false to prevent sorting
- enableHighlighting - As the mouse moves over a table row, the row will be highlighted by default. Set enableHighlighting=false to stop this behavior. This parameter was formerly known as highlightRow which still works.
- sortColumn - The table can be auto sorted before it is displayed by any valid column name or number provided by this parameter. No auto sorting will be done if this value is not provided or is invalid. A column number is a 1-based count of columns (excluding auto number column).
- sortDescending - If sortDescending=true, the sort indicated by the sortColumn will be done in reverse order.
- sortTip - Text that is used to provide user feedback with mouse is over a column heading that is sortable. Default text is: "Click to sort" followed by the column name if available.
- sortIcon - Default is false to not show sort indicator icon. Set sortIcon=true to include a sort icon in the first heading row for sortable columns. An icon will show for the last column sorted indicating the direction the column was sorted.
- highlightColor - Color of row when mouse is over a row element. See the notation guide or Web colors for how to specify.
- autoNumber - If autoNumber=true, an additional column will be added that will count each data row.
- autoNumberSort - If autoNumberSort=true, the auto number column will be sortable and will retain the original data row count even after row sorting.
- autoTotal - If autoTotal=true, an additional row will be appended to the end of the table that will contain totals of all numeric columns.
- autoNumberSort - If autoNumberSort=true, the auto number column will be sortable and will retain the original data row count even after row sorting.
- columnTypes - By default, all columns are treated as strings for sorting purposes unless a more specific sort type is provided either by the macro logic or by this parameter. The parameter is a comma separated list of column type indicators to identify column types.
- S - string
- I - integer
- F - float
- C - currency or similar where it is a float value with pre or post characters
- D - date in the browser date format. See advancedDate for more information.
- X - exclude this column from user selectable sorting
- H - hide the column
- . or - or : or / - separated numbers, like phone numbers or TCP addresses. Valid values are multiple integer numbers separated by one of the separators indicated by the type.
- columnAttributes - A comma separated list of values used to modify cell attributes for all cells in a column. The position in the comma separated list corresponds to the column that the values apply to. Each value is a double semi-colon list of attributeName=value pairs that will be applied to the column cells.
- enableHeadingAttributes - By default, any column attributes provided will be applied to the all column rows including heading rows. Set enableHeadingAttributes=false to have the column attributes apply only to data rows.
- id - Sets the table id for the table for use in macros (like the chart macro) to identify a specific table.
Advanced date sorting
The default date handling (using the D column type) provides support for the browser default date format. This may not
work properly for tables that have date format that are different than the default format set for individual browsers. More advanced and automatic capabilities are possible by installing a specific date handling library. Documentation and source for the library can be found at JavaScript Toolbox. Install the date.js file on your Confluence server in .../includes/js directory.
Once the date library is installed, the D column type will now match successfully on many different date formats. Alternatively, setting a column type of D followed by a valid date format. Note that date formats that contain a comma (,), must be enclosed in a double quote.
Date examples:
| Column type | Example date |
|---|---|
| DMM/dd/yyyy | 01/08/2007 |
| D"MMM d, yyyy" | Jan 8, 2008 |
| D | Many popular date formats |
Note that the date library is in English for date formats that include characters. It is possible to easily modify the date library for other languages before installing it on your server.
Examples
{table-plus:columnTypes=S,-,.|autoNumber=true|sortColumn=3
|columnAttributes=,,style="background:yellow; font-size:14pt;"}
|| Name || Phone || TCP ||
| John | 555-1234 | 192.168.1.10 |
| Mary | 555-2134 | 192.168.1.12 |
| Bob | 555-4527 | 192.168.1.9 |
{table-plus}
which renders as:
| Name | Phone | TCP |
|---|---|---|
| John | 555-1234 | 192.168.1.10 |
| Mary | 555-2134 | 192.168.1.12 |
| Bob | 555-4527 | 192.168.1.9 |
Version History
| Version | Date | Author | Notes |
|---|---|---|---|
| 3.3.1 | 15-Jul-2007 | Bob Swift | release notes |
| 3.3.0 | 22-Jun-2007 | Bob Swift | release notes |
| 3.2.1 | 25-Mar-2007 | Bob Swift | release notes |
| 3.2 | 04-Mar-2007 | Bob Swift | release notes |
| 3.1 | 08-Jan-2007 | Bob Swift | release notes |
| 3.0.1 | 15-Oct-2006 | Bob Swift | Java 1.4 compatibility |
| 3.0 | 24-Sep-2006 | Bob Swift | release notes |
- Previous versions were included in Scripting and External Content Macros
Release Notes
- 3.3.1
When: 15-Jul-2007
Who: Bob Swift
What:
Atlassian Developer Network JIRA
(1 issues)
T Key Summary Reporter Assignee Pr Status
TBL-35 autonumbersort=true not sorting as numbers Bob Swift Bob Swift
Resolved
- 3.3.0
When: 22-Jun-2007
Who: Bob Swift
What:
Atlassian Developer Network JIRA
(6 issues)
T Key Summary Reporter Assignee Pr Status
TBL-34 Update to 2.4.x API level Bob Swift Bob Swift
Closed
TBL-33 Maven2 build environment Bob Swift Bob Swift
Closed
TBL-32 Table header not recognized if thead used instead of tr Chris Hatch Bob Swift
Closed
TBL-31 Sort order should be AaBbCc instead of ABCabc. Bernhard Neuhauser Bob Swift
Resolved
TBL-30 Table plus and reporting macro break sorting Pim van Meurs Bob Swift
Resolved
TBL-29 table plus features do not work if table cells contain tables via an include or metadata-report James Mortimer Bob Swift
Resolved


Comments (33)
Jan 13, 2007
Anna Si says:
Hi Bob, et al, I am a novice. I installed the TablePlus macro but I am getting a...Hi Bob, et al,
I am a novice. I installed the Table-Plus macro but I am getting an "Unknown macro" error message. Could it be because I unknowningly installed it in the " /WEB-INF/lib". If yes, how could I fix it? Thank you very much in advance for your assistance!!
Jan 13, 2007
Bob Swift says:
You are correct, it cannot be installed in WEBINF. Stop the server, delete the p...You are correct, it cannot be installed in WEB-INF. Stop the server, delete the plugin from /WEB-INF/lib. I suggest you start using the repository client as it simplifies things considerable for most plugins. If not that, then go to Administration->configuration->plugins and upload the plugin form there.
Jan 13, 2007
Anna Si says:
Hi Bob, Thank you for the quick response\! I did install it from the repository ...Hi Bob,
Thank you for the quick response! I did install it from the repository client. I don't know why things went wrong. Thanks again.
Feb 02, 2007
Stephen Day says:
Hi Bob, We've installed this plugin (v3.1), but it doesn't seem to be working. ...Hi Bob,
We've installed this plugin (v3.1), but it doesn't seem to be working. When I paste in the example from above it just renders like before. None of the "Common table based capabilities and parameters" seem to work. Same thing for the sql macro.
Something else also is strange. When I run the marco-list macro, the table-plus macro shows up twice, the only difference being that one has a "Common table capabilities" section while the other doesn't. Seems that the old version is still active?
Steve