Tags:
rendering1Add my vote for this tag search2Add my vote for this tag usability2Add my vote for this tag create new tag
view all tags

SearchSummaryPlugin

Show search terms and surrounding context in topic summaries

Introduction

Improves the presentation of summaries for keyword, word and literal searches, by displaying topic content on either side of the search terms wherever they are found in the topic. Especially useful for searches in documentation.

For example, %SEARCH{"cat +spasm" type="keyword"}% produces:

This plugin only works with TWiki-4 or later.

Usage

Install and enable the plugin. It "just works". You can change the size of the context (the number of characters either side of a search term) by setting the TWikiVariable SEARCHSUMMARYPLUGIN_CONTEXT (the default is 30). You can change the CSS class used to highlight search terms by setting SEARCHSUMMARYPLUGIN_CSSCLASS. The default is twikiAlert.

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

Some Technical Gobbledegook

This plugin uses a technique called monkey-patching where the plugin replaces a section of the core with some different code. It does this dynamically, so you can install the plugin without needing to change the core. However the monkey-patching technique is very sensitive to changes in the core code. If it stops working after an upgrade, and you have some programming knowledge, then check to make sure the core functions it patches still have the same prototype as in the previous release, and if not, fix the plugin.

Plugin Info

Plugin Author: Crawford Currie http://c-dot.co.uk for Escape Studios http://www.escapestudios.co.uk/
Plugin Version: 18589 (2010-05-04)
Copyright: © 2007 Escape Studios;
© 2008-2010, TWiki:TWiki/TWikiContributor
License: GPL (Gnu General Public License)
Change History:  
2010-05-04: TWikibug:Item6433 - doc improvements; replacing TWIKIWEB with SYSTEMWEB
2007-09-08: TWikibug:Item4211 - fixed for 4.2.0
2007-06-11: TWikibug:Item4237 - fixed a couple of corner-cases
2007-06-08: Minor bugfixes
2007-06-06: First version
Dependencies: None
Plugin Home: http://twiki.org/cgi-bin/view/Plugins/SearchSummaryPlugin
Feedback: http://twiki.org/cgi-bin/view/Plugins/SearchSummaryPluginDev
Appraisal: http://twiki.org/cgi-bin/view/Plugins/SearchSummaryPluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 SearchSummaryPlugin.md5 r7 r6 r5 r4 r3 manage 0.2 K 2010-05-05 - 06:13 PeterThoeny  
Compressed Zip archivetgz SearchSummaryPlugin.tgz r7 r6 r5 r4 r3 manage 24.8 K 2010-05-05 - 06:13 PeterThoeny  
Compressed Zip archivezip SearchSummaryPlugin.zip r7 r6 r5 r4 r3 manage 26.3 K 2010-05-05 - 06:12 PeterThoeny  
Unknown file formatext SearchSummaryPlugin_installer r6 r5 r4 r3 r2 manage 3.5 K 2010-05-05 - 06:13 PeterThoeny  
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2018-07-17 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.