This is what it normally should do,
Nr. |
|
Description |
1 |
Yes |
Whatever |
Raw code,
| *Nr.* | %ICON{"attachfile"}% | *Description* |
| 1 | Yes | Whatever |
On EditTablePlugin,
Raw code,
%EDITTABLE{ header="| *Nr.* | %ICON{"attachfile"}% | *Description* |" format="| row,-1 | text,3 | text,50 |" }%
| 1 | Yes | Whatever |
So I tried $percnt instead,
Raw code,
%EDITTABLE{ header="| *Nr.* | $percntICON{"attachfile"}$percnt | *Description* |" format="| row,-1 | text,3 | text,50 |" }%
| 1 | Yes | Whatever |
It works fine like so,
Raw code,
%EDITTABLE{ format="| row,-1 | text,3 | text,50 |" }%
| *Nr.* | %ICON{attachfile}% | *Description* |
| 1 | Yes | Whatever |
Great eh?
--
TWiki:Main/KwangErnLiew - 16 Mar 2007
The docs may not be so clear, but
header
is only visible edit mode. In theory this should work:
%EDITTABLE{ format="text,10|text,20|textarea,7x60|" header="|*Nr.*|*%ICON{help}%*|*Description*|" }%
... but the quotes in the resolved icon html clash with the EDITTABLE parameters.
This is less intuitive but does not break:
%EDITTABLE{ format="text,10|text,20|textarea,7x60|" header="|*Nr.*|*<img src=\"%ICONURL{attachfile}%\" width=\"16\" height=\"16\" alt=\"Attach file\" border=\"0\" />*|*Description*|" }%
I don't think this is a bug. It is just the rendering order of TWiki code that make things more difficult.
AC
Hm I see. Thanks!
--
TWiki:Main.KwangErnLiew - 19 Mar 2007