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

Add the very useful variable to FormattedSearch that simply gives the number of items returned from a search returns the number of incidences of a regex string. Useful for such things as listing number of comments in a topic.

TWiki:Main.ColasNahaboo provided a patch implementing this feature for Cairo (see TWiki:Codev.FormattedSearchCountVariable). I did a quick check to see if it could be easily modified for Dakar but couldn't find any corresponding code in Develop version of search.pm.

With some coaching (and prodding smile ) from CC, I ported the patch provided by Colas to Develop version of lib/TWiki/Search.pm.

SVN 6244


Added documentation to FormattedSearch (just after $pattern).

SVN 6245

Also added note to TWiki:Codev.DakarReleaseNotes#New_count_reg_exp_variable_in_TW.


Side note: having carried this through, I realize it wasn't fully the feature I imagined. :-\ See revised text above. Still need feature for simply returning number of items found in a search. Separate feature request for another day...

Summary Port Formatted Search Count Variable from Cairo version.
ReportedBy TWiki:Main.LynnwoodBrown

AppliesTo Engine
Priority Enhancement
CurrentState Closed

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