A quick scan of of the various feature-pages didn't reveal this specific request, so ...
In our (intranet)-TWiki we work with tables pretty often. Many tables list some kind of tasks with a cell stating 'done' or something reporting the state of the task. This is where this feature-request stems from, because we'd like to color the cell-backgrounds of specific cells. Some basic colors would suffice to highlight certain areas of tables. There are probably a lot of other uses for this.
Right now there are three possible solutions for this:
- Use HTML-Tables - but: no TWiki-Syntax
- define a TWiki-wide alias and use it instead of the cell-border-character - but: this doesn't work in die first column. Example:
* Set BGRED = [td][td bgcolor=#FF5050] (tr/[]/<>/, sorry, browser didn't show the tags ...)
| *Header1* | *Header 2* | *Header 3* |
| task 1 | goal %BGRED% done |
- Hack emitTR. emitTR could scan the cell for a specific notation, like |![A-Z] yadda | with the character specifying the background-color (maybe even configurable in some Property-Document) - but: we don't want to develop our own TWiki ;). This could look like:
| *Header1* | *Header 2* | *Header 3* |
| task 1 | goal |!R done |
What do you think ?
--
RalfBoetnagel - 22 Nov 2001
How about defining a preferences variable for each status with a colored background?, i.e. Set DONE =
DONE , and using
%DONE% etc in your table cells?
--
PeterThoeny - 22 Nov 2001
I had a similar requirement. Solved it with stylesheets (see:
UsingTopicToDefineCSS ):
| <span class=\"$formfield(JobPriority)\">$formfield(JobPriority)</span> |
And in my stylesheet topic added:
.done {
font-weight: bold;
background-color: red;
}
.inprogress {
font-weight: bold;
background-color: green;
}
--
AdrianLynch - 23 Nov 2001