Item821: Allow links in EditTablePlugin dropdown
Priority: Low
Current State: Needs Developer
Released In:
Target Release:
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