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

Details

I have a page that has the following search in it:
%SEARCH{"ReqNo" scope="topic" regex="on" nosearch="on" nototal="on" casesensitive="on" format="$percntCALC{$IF($NOT($FIND(%TOPIC%,$formfield(ReqParents))), <nop>, [[$topic]] - $formfield(ReqShortDescript) %BR% )}$percnt"}%

After using Kupu on the web page, this gets translated to:

%SEARCH{"ReqNo" scope="topic" regex="on" nosearch="on" nototal="on" casesensitive="on" format="$percntCALC{$IF($NOT($FIND(%TOPIC%,$formfield(ReqParents))), , <a href="$topic">$topic</a> - $formfield(ReqShortDescript) %BR% )}$percnt"}%

This translation of:

[[$topic]]  to  <a href="$topic">$topic</a>

is what breaks the search.

Note that this is reported below as

"Linkstyle [[%TWIKIWEB%.WebHome][TWiki web]] is altered" 
but is noted as only an annoyance and not actually breaking functionality.
OK, there was actually a bug related to the nop. Fixed in SVN 7416.

Note that if you intend to edit variables, you really need to turn on variable spans. By default the plugin tries to pass variables through verbatim, but the reverse translation is impossible without a full twiki parse of the text being saved to recognise TWiki variables. This means that (for example) the [[ in your example will be escaped with nops when the topic is saved, as it will be asusme that you were trying to enter two [ signs.

CC

ItemTemplate
Summary Corruption of search string that breaks search
ReportedBy RickMach 19 Oct 2005
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState Closed
WaitingFor

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