• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item3777: ICON on EditTablePlugin header

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension   Low No Action Required   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


This is what it normally should do,
Nr. Attach file Description
1 Yes Whatever

Raw code,

| *Nr.* | %ICON{"attachfile"}% | *Description* |
| 1 | Yes | Whatever |

On EditTablePlugin,

1 Yes Whatever

Raw code,

%EDITTABLE{ header="| *Nr.* | %ICON{"attachfile"}% | *Description* |" format="| row,-1 | text,3 | text,50  |" }%
| 1 | Yes | Whatever |

So I tried $percnt instead,

1 Yes Whatever

Raw code,

%EDITTABLE{ header="| *Nr.* | $percntICON{"attachfile"}$percnt | *Description* |" format="| row,-1 | text,3 | text,50  |" }%
| 1 | Yes | Whatever |

It works fine like so,

Nr. Attach file Description
1 Yes Whatever

Raw code,

%EDITTABLE{ format="| row,-1 | text,3 | text,50  |" }%
| *Nr.* | %ICON{attachfile}% | *Description* |
| 1 | Yes | Whatever |

Great eh? smile

-- 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.


Hm I see. Thanks!

-- TWiki:Main.KwangErnLiew - 19 Mar 2007

Summary ICON on EditTablePlugin header
ReportedBy TWiki:Main.KwangErnLiew
Codebase 4.0.5, 4.1.0, 4.1.1, 4.1.2
SVN Range TWiki-4.1.2, Sat, 03 Mar 2007, build 13043
AppliesTo Extension

Priority Low
CurrentState No Action Required


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2007-03-19 - KwangErnLiew
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback