DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:searchns

searchns Plugin

Compatible with DokuWiki

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

plugin

Last updated on
2024-03-14
Provides
Action
Repository
Source

Tagged with search

This plugin lets you set apart and emphasize certain namespaces in quick search.

A CosmoCode Plugin

Installation

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

Configuration

The plugin needs to be configured with relevant namespaces and associated labels, as shown in the example:

product:foobar:2024:     Foobar Version 2024
product:bar:2024:        Bar Version 2024
product:foobar:2023:     Foobar Version 2023
product:bar:2023:        Bar Version 2023
product:foobar_pl:2024:  Foobar Version 2024 (polski)
internal:                Company Internals

The option “all” is automatically added to the end of the list. There is a setting to place “all” at the beginning of the list.

Usage

Custom Search Widget

The plugin provides a new search widget that makes use of the configuration mentioned above. It shows a dropdown with namespace labels as defined, with an additional “all” option. The user can pick one of the labels to automatically limit the search results to the namespace associated with the label. This limit applies to shown “quick search” results (matching page names shown in an overlay) as well as to the results returned on the search page after hitting enter.

Page Match Grouping

The resulting list of matching page names is reordered and grouped by subheadings, according to the configured namespaces.

plugin/searchns.txt · Last modified: 2024-03-14 23:51 by andi

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