ABC Hover Index

Summary: displays a pagelist as an alphabetic hover menu, sorted by title Version: 2008-04-20 Prerequisites: PmWiki 2.2 beta Status: new Maintainer: HansB? Categories: Searches PageList Menus UpdateMe Download: see Cookbook:ABCHoverIndex

Questions answered by this recipe

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

Description

This script adds a pagelist format fmt=hoverindex, which displays a pagelist as a horizontal row of alphabetical index letters, showing the alphabetical pagelist subsections only when hovering the mouse pointer over the index letters. The pages are sorted by title and displayed by title.

Copy Attach:abchoverindex.php Δ to cookbook/ folder and add to config.php

include_once("$FarmD/cookbook/abchoverindex.php");

This recipe is based on DictIndex? and LinkCSSToolTip, combining an alphabetical pagelist index (but sorted and displayed by page titles, not names) and css to display each pagelist subsection when hovering with the mouse over the index letter.

Example markup (not yet activated on this page):

(:pagelist group=PmWiki list=normal fmt=hoverindex:)

Notes

Release Notes

  • 2008-04-20: fixed removal of last index letter separator.
  • 2008-04-18: initial release.

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See Also

Contributors

Comments

Minor alteration to line to add to config.php. I asume was pasted from somewhere else. Tried it, works perfectly!

Dave Cooke 20 April 2008