WikiMap

<< | Cookbook-V1 | >>

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Goal

Generate a map of relationships between a subgroup of Wiki pages.

Solution

This script spiders part of a Wiki and generates a PNG map usingGraphViz. The map includes:

  • The start node
  • All nodes which link to the start node
  • All nodes which the start node links to (second order nodes)
  • All links from the start node to second order nodes
  • All nodes which the second order nodes link to (third order nodes)
  • All links from second order nodes

In verbose mode, the map also includes:

  • All links from third order nodes to second and third order nodes

The first order node is outlined in bold, second order nodes are plain, and third order nodes are outlined with dashes.

Requirements

How To

  1. Make sure you have the requirements listed above.
  2. Drop the attached file, wiki-graph, into a cgi-bin directory (possibly renaming it to wiki-graph.cgi).
  3. You may need to edit the path to perl.
  4. You may also want to change the node defaults.
  5. Call the script with the following parameters:
    1. base = base URL for your wiki
    2. start = starting node for the map
    3. verbose = show third-order connections if set to 1
    4. debug = show debug output instead of the graph if set to 1
  6. Example: http://www.example.com/cgi-bin/wiki-graph?base=http://www.pmichaud.com/wiki/&start=Cookbook/WikiMap (this link has been dead for over two months...)

Contributors

  • Bryant Durrell, 8/25/2003

pmwiki-2.3.38 -- Last modified by {{SchreyP}}

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