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

Item4170: EditTablePlugin changes content if content is a TWIki var

Item Form Data

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

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

EditTablePlugin tends to expand twiki variables. This is undesirable.

I've known for a while that, for example, PICK will expand to the full <img src...= string.

Today I did a test that shows that %INCLUDE directives are also expanded.

While it is acceptable for these to be expanded during rendering (by the TWiki engine), it's NOT good for EditTable to do the expansion .

For exammple, given this table

%EDITTABLE{format="| text,20 | textarea,3x30|"}%
|  | %INCLUDE{"ProjectTwikiTemplate" pattern="^.*<\!--devhealth-->(.*?)<\!--/devhealth-->.*"}% |

and the page ProjectTwikiTemplate conmtaining the following

---+++ Development Health 
|*Health Flag%BR%<i>Green/Yellow/Red</i>*|*High Level Description*|*Links to detailed info*|*Last update on*|
| <!--devhealth-->green<!--/devhealth--> | <!--devnote--><!--/devnote--> |  | 1/10/2007 |

The source of the Editable table eventually changes to (literally)

%EDITTABLE{format="| text,20 | textarea,3x30|"}%
|  | green |

Thus, the INCLUDE only works once. (If the content of the included section changes, the table will never pick up the change)

-- TWiki:Main/VickiBrown - 31 May 2007

Confirmed. And it is dammed annoying that you cannot add TWiki vars in edit mode without having them expanded to static text.

-- TWiki:Main.KennethLavrsen - 14 Jun 2007

See also Item3958 which I marked as duplicate.

-- TWiki:Main.KennethLavrsen - 03 Oct 2007

This is actually a duplicate of both Item3958 , Item4852 and Item3890.

3890 has the best description so marking this No action leaving 3890 open.

-- TWiki:Main.KennethLavrsen - 19 Oct 2007

ItemTemplate
Summary EditTablePlugin changes content if content is a TWIki var
ReportedBy TWiki:Main.VickiBrown
Codebase

SVN Range TWiki-4.1.2, Fri, 18 May 2007, build 13796
AppliesTo Extension
Component EditTablePlugin
Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

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