KKnd   PmWikiZhCnUtf8 /
CustomInterMap
SearchWiki
PmWikiZhCnUtf8.最近改变
编辑页面
页面修正

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:
    PmWiki          http://www.pmichaud.com/wiki/PmWiki/
    Wiki            http://c2.com/cgi/wiki?
    Meatball        http://www.usemod.com/cgi-bin/mb.pl?
    UseMod          http://www.usemod.com/cgi-bin/wiki.pl?
    ISBN            http://www.amazon.com/exec/obidos/ASIN/
    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.

这个页面讲解一个WikiAdministrator(Wiki管理员)如何创建一个附加的InterMap的链接。

在scripts文件夹下的intermap.txt文件指定了一些默认随PmWiki一起发布的InterMap链接 intermap.txt文件的每一行是如下的格式:

    HostPrefix       http://www.somehost.com/partial/url/
例如:intermap.txt文件中有如下的一些设定:
    PmWiki          http://www.pmichaud.com/wiki/PmWiki/
    Wiki            http://c2.com/cgi/wiki?
    Meatball        http://www.usemod.com/cgi-bin/mb.pl?
    UseMod          http://www.usemod.com/cgi-bin/wiki.pl?
    ISBN            http://www.amazon.com/exec/obidos/ASIN/
    Wikipedia       http://www.wikipedia.com/wiki/

如果你希望创建自已的InterMap链接,不要直接去编辑intermap.txt!!(那样如果你升级你的PmWiki(upgrades)时,修改就会丢失)。你可在local/文件夹中创建一个localmap.txt文件来包含你的InterMap链接。PmWiki在加载intermap.txt后会自动读取你的链接.

Trans. By LongWoSion

<< PerGroupCustomizations? | PmWikiZhCnUtf8.DocumentationIndex | PasswordsAdmin >>


编辑页面 - 页面修正 - WikiHelp - SearchWiki - 最近改变 - Printable Version
页面最后更新于 18 九月, 2003, 时间 16:55

©
copyleft by [email protected]
or
[email protected]