PmWiki / CustomInterMap

This page describes how a WikiAdministrator can create additional InterMap links.

The file intermap.txt in the scripts directory specifies the default InterMap links that are distributed with PmWiki. Each line of intermap.txt has the following format:

    HostPrefix       http://www.somehost.com/partial/url/
For example, intermap.txt has the following entries:
    ISBN            http://www.amazon.com/exec/obidos/ASIN/
    IMDB            http://www.imdb.com/find?q=
    Meatball        http://www.usemod.com/cgi-bin/mb.pl?
    PmWiki          http://www.pmichaud.com/wiki/PmWiki/
    UseMod          http://www.usemod.com/cgi-bin/wiki.pl?
    Wiki            http://c2.com/cgi/wiki?
    Wikipedia       http://www.wikipedia.com/wiki/

To create your own InterMap links, do not edit the intermap.txt file directly! You'll lose your changes when you do a PmWiki.Upgrade. Instead, create a file called localmap.txt in the local/ subdirectory containing your InterMap links in the format described above. PmWiki will automatically read your links after loading the intermap.txt entries.

The intermap technique is also useful to get access to uploaded documents of other WikiGroups. Suppose you have a group called Figures with uploads; you can add a line to localmap.txt like

   figures	http://www.somehost.com/uploads/Figures/
and access the uploaded files for that group by using figures:your-upload.doc from any group in the PmWiki.


Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /export/vol2/unix/t/templar/www.tempsoft.se/index.php on line 668

Warning: Invalid argument supplied for foreach() in /export/vol2/unix/t/templar/www.tempsoft.se/index.php on line 678
<< PerGroupCustomizations | PmWiki.DocumentationIndex | Robots >>


Webmaster - Edit Page - Page Revisions - WikiHelp - SearchWiki - RecentChanges
Page last modified on December 29, 2003, at 11:25 PM