JumpBox

Summary: A pull down menu that can be used for navigation
Version: 2015-10-02
Prerequisites: Latest version of PmWiki
Status:
Maintainer:
License: GPL2
Categories: Forms | Markup | Menus | PHP55
Discussion: JumpBox-Talk
Users: (View? / Edit)

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";

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 http://www.pmwiki.org/wiki/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.