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

Item4697: Ability to do meta data manipulation with $formfield of Formatted Search

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement No Action Required Codev feature proposal to be made n/a  

Edit Form Data

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


I came across this need when a TWiki application, (A test management system) had grown over 25k topics and had to be split across several webs.

As a simple Example, In TestWeb, we have defined TestCase. A TestRun is an instance of a TestCase, run with different configurations.

TestRun -> TestCase

We pulled the TestRuns out of TestWeb, say TestRunWeb, and left the TestCases in TestWeb. For the reference in the Form of the TestRun to link properly to the referenced TestCase, we now have to have:


transformed to


It becomes an issue when we use a %SEARCH{}% to List the TestRuns, we use the form element "TestCase" from TestRuns to use as a display name:


which now looks really ugly, since the link will render to "TestWeb.ExampleTestCase", which is misleading. We need to cut off the WebName. I initially tried a Plugin extension, but I ran into rendering problem when nested with the SpreadSheetPlugin, it wouldn't come out right.

For example:

%CALC{$NOP($perSEARCH{"TestRuns"....)$per}% format=[[$topic][$percntWEBCHOP($formfield(TestCase)}$percnt]]}%

It would be nice to have something similar to $pattern for $formfield.

For now, to get my system to work, I did a little hack in Render.pm to allow it to strip off the Web, with the following syntax:

$formfield(TestCase, -</br>, noweb)

Here is the change:

308 > cvs diff Render.pm
Index: Render.pm
RCS file: /master/twiki/4.0.4/lib/TWiki/Render.pm,v
retrieving revision 1.2
diff -r1.2 Render.pm
< my @params = split( /[\,\s]+/, $args, 2 );
> #my @params = split( /[\,\s]+/, $args, 2 );
> my @params = split( /\s*\,\s*/, $args, 3 );
> if ( $params[2] =~ m/noweb/i ) {
> $text =~ s/^(([^\.]+)\.)+//;
> }

-- TWiki:Main/PaulineCheung - 22 Sep 2007

This kind of new feature should be raised as a feature proposal.

  • It ensures the feature is discussed by the community
  • It makes it more likely to not be ignored

If you can find a committed developer willing to implement it - it is even better because then you are assured that the community deals with it.

A direct link to it: TWiki:Codev/TWikiFeature04x02

-- TWiki:Main.KennethLavrsen - 22 Sep 2007

Was never followed up upon for a year. No action

-- KennethLavrsen - 26 Jul 2008

Summary Ability to do meta data manipulation with $formfield of Formatted Search
ReportedBy TWiki:Main.PaulineCheung
Codebase 4.1.2
SVN Range TWiki-4.3.0, Thu, 20 Sep 2007, build 14972
AppliesTo Engine

Priority Enhancement
CurrentState No Action Required
WaitingFor Codev feature proposal to be made

TargetRelease n/a

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2008-07-26 - KennethLavrsen
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