DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:searchform

searchform Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" yes
  • 2023-04-04 "Jack Jackrum" yes
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" yes

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

Last updated on
2024-02-08
Provides
Syntax
Repository
Source

Similar to confsearch, datasearchform

Tagged with form, search

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

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> or -ns=<namespace:skipped>

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

These boxes searches respectively in wiki:, all namespaces or in the subnamespace other:namespace. The last one does not search in exclude:namespace.

Layout

This plugin reuses the layout of the quick search field at the top of the page. For the default 'dokuwiki' template this works fine. Maybe that other templates need some improvements.

Last commits

Development

This plugin is adopted by Klap-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: 2024-02-08 08:34 by 2a02:a44a:3b00:1:41c4:9e04:ded6:a58b

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