DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:searchform

searchform Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes

plugin Adds the search form to any page. Namespace configurable.

Last updated on
2014-07-30
Provides
Syntax
Repository
Source

Tagged with form, search

Installation

Install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually with download url above.

Syntax

To include a searchform in any page you add the syntax:

{searchform}

It will show a search box that searches default in the namespace where that page is.

To perform searches in other namespaces you add the option ns=<your:namespace>

{searchform ns=wiki}
{searchform ns=}
{searchform ns=other:namespace}

These boxes searches respectively in wiki:, all namespaces or in the subnamespace other:namespace.

Development

This plugin is adopted by Klap-inKlap-in

in 2014.

Changes:

  • The searchform searches default in the namespace of the page where it is included
  • or searches the namespace given by syntax option ns=<your:namespace>
  • Multiple searchforms at one page are possible
  • Reformatting and refactoring of the code

Previous release by Adolfo González Blázquez, last updated at 2008-10-10:

  • available as first commit 201f22cfb4 of this fork
plugin/searchform.txt · Last modified: 2017-04-07 17:17 by cziehr