Cookbook /
JumpBox
Summary: A pull down menu that can be used for navigation
Version: 2018-06-07
Prerequisites: Latest version of PmWiki
Status:
Maintainer:
License: GPL2
Discussion: JumpBox-Talk
Questions answered by this recipe
Q. How do I make a select box that automatically jumps to the page I select?
A. Use the Jumpbox recipe, of course.
How to Use
1. Download and enable the jumpbox.phpΔ recipe by adding the following to your config.php file:
include_once "$FarmD/cookbook/jumpbox.php";
For PHP 7.2 or newer please get jumpbox72.phpΔ instead (should also work in PHP 5).
2. Create a pagelist template that looks like the following:
[[#jumpbox]] (:template first:) (:input jumpbox value='' label='Select One...':) (:template each:) (:input jumpbox value="{=$PageUrl}" label="{=$Title}":) [[#jumpboxend]]
3. Create a pagelist like the following
(:pagelist group=Main fmt=#jumpbox:)
Notes
I just copied this from the page Pm put up at Test.JumpBox.
Contributors
Comments
See Discussion at JumpBox-Talk
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.