JumpBox
<< | Cookbook-V1 | >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
Contents
Goal
Create a [[$Jump]] markup that provides a text box to quickly jump to another page, or conduct a search if the page doesn't exist.
Solution
Discussion
This recipe adds [[$Jump]] markup sequence that generates a text box where a user can enter the name of a page to navigate to (instead of having to use links or edit the browser URI). If the user enters the name of a page that doesn't exist, then a search is performed instead.
For example, entering a page name in the box below will jump directly to that page. Entering an invalid or nonexistent page name causes search results to be displayed instead.
See Also
- Main.SearchWiki
- SearchGroup
- SearchBoxOnHeader
History
Comments & Bugs
There probably should be some sort of indication in the search results that the requested page was unavailable a list of pages containing the text string are being displayed instead.
Contributors
pmwiki-2.4.5 -- Last modified by {{}}?