DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:selectsearch

This is an old revision of the document!


selectsearch Plugin

Compatible with DokuWiki

2012-10-13

plugin

Last updated on
2012-11-01
Provides
Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to fancysearch, nssearch

Tagged with dropdown, namespace, search

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

The selectsearch plugin is a “non-fancy” copy of the fancysearch plugin. It is possible to define a list of namespaces in the plugin config (via the config manager) from which the user can choose when doing a search in the wiki. The results will be restricted to the chosen namespace.

To use the Plugin you have to include the searchbox in your template:

$selectsearch = plugin_load('action', 'selectsearch');
  if (!is_null($selectsearch)) {
      $selectsearch->tpl_searchform();
  } else {
      tpl_searchform();
  }

Configuration and Settings

In the configuration manager you can define a list of namespaces to be selected by the user when doing a search.

The syntax for the option is the:name:space>Text to display in dropdown

The options are comma seperated. For having an option to search the whole wiki, you have to add an empty namespace like this: >whole wiki</tt

The defalut value gives a good impression how this works:

$conf['searchnamespaces'] = ">All pages,portfolio>Portfolio,hilfe>Help";

Change Log

  • 2012-11-01
    • Initial release

Known Bugs and Issues

FAQ

[discussions should ideally be deleted and turned into FAQ entries along the way]

Discussion

Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs

plugin/selectsearch.1351779817.txt.gz · Last modified: 2012-11-01 15:23 by haegar

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki