NavigateUsingRecentChanges
<< | Cookbook-V1 | >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
This set of ingredients allows an administrator to add navigation links that use the data from RecentChanges pages.
- derive a list of groups from Main.AllRecentChanges, to use for navigating between groups
- derive a pick list of groups, to use for restricting a search to a selected group (the current group by default)
- derive the alphabetic next and previous page in a group using RecentChanges
- derive the first n entries from a trail page, such as RecentChanges
Usage
Requires PmWiki/PmWiki version 0.5.6 or above. Insert
include_once("local/listgroups.php");
in your local.php file.
For an example of the script in action (the site is in the early stages of development), see the LIANZA IT-SIG wiki. Follow the Research link to see the alphabetic « previous, next » and most recent features.
The navigation omits pages like GroupHeader and RecentChanges -- the administrator can define custom exception pages by setting a script variable. The script contains some sample usage notes that explain how to configure it.
Revisions
18 August 2003: make the script work better with WebMenu -- put the <#> on a WebMenu page to list all the groups.
Contributor
John Rankin pmwiki-2.3.38 -- Last modified by {{}}