|
PmWiki / CustomInterMap |
SearchWiki PmWiki.RecentChanges Edit Page Page Revisions |
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.
<< PerGroupCustomizations | PmWiki.DocumentationIndex | Robots >>