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.

  1. derive a list of groups from Main.AllRecentChanges, to use for navigating between groups
  2. derive a pick list of groups, to use for restricting a search to a selected group (the current group by default)
  3. derive the alphabetic next and previous page in a group using RecentChanges
  4. derive the first n entries from a trail page, such as RecentChanges

Attach:listgroups.php

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.32 -- Last modified by {{}}

from IP: 85.171.160.186 ip should be disabled by default for security reasons