NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item11383 for general documentation changes for release 1.1.5. Use Item9693 for docu changes for release 2.0.

Item821: Allow links in EditTablePlugin dropdown

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Low New Extension EditTablePlugin  
From http://twiki.org/cgi-bin/view/Plugins/EditTablePluginDev:

I think the EditTablePlugin may need a little fix below. In the version used on my wiki site it was not possible to have a wiki link on option list, like that:

%EDITTABLE{ format="select, 1, [[Link]]" }%
|  |

An "Edit" action would convert it to a plain word "Link".

Index: Core.pm
===================================================================
--- Core.pm    (version 31)
+++ Core.pm    (version 32)
@@ -963,6 +963,7 @@
           $valExpanded   =~ s/^\s+//;
           $valExpanded   =~ s/\s+$//;
+           TWiki::Plugins::EditTablePlugin::encodeValue($val) if $val;
           if ( $valExpanded eq $expandedValue ) {
               $text .= " <option selected=\"selected\">$val</option>";
           }

Sorry for spamming you, but I haven't found any reasonable place in the huge TWiki site to put a comment like this.

-- TWiki:Main.KrzysztofNosek - 03 Nov 2008

I have not tried the patch and I do not dare adding it to 1.0.5 which I am working on now as any change we ever did to EditTablePlugin cost us a painful 2-3 weeks of fixing.

But I can give you a work around.

Instead of using the link directly use

%EDITTABLE{ format="select, 1, [<nop>[Link]]" }%
|  |

The little nop prevent the renderer from turning the text into a link too early.

In Foswiki 1.0.4 and forward - once the link is in the table it works and gets saved correctly

-- KennethLavrsen - 22 Apr 2009

ItemTemplate edit

Summary Allow links in EditTablePlugin dropdown
ReportedBy ArthurClemens
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component EditTablePlugin
Priority Low
CurrentState New
WaitingFor
Checkins
ReleasedIn
Topic revision: r2 - 22 Apr 2009 - 00:26:50 - KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads