Table of Contents
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
This plugin lets you set apart and emphasize certain namespaces in quick search.
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 and thus making it the default.
The option “filter by ACL” will hide all namespaces from the dropdown where the current user has no direct access, similar to the sneaky_index option.
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.