[pmwiki-users] IRI scheme

Patrick R. Michaud pmichaud at pobox.com
Mon Jan 22 16:21:57 CST 2007


On Mon, Jan 22, 2007 at 11:14:06PM +0100, Jan Erik Moström wrote:
> I was playing around to see if I could use PmWiki for a few more 
> things and entered a link like this
> 
> [[x-yojimbo-item://BACC2403-FEEA-4DBD-9086-D1B6B8991D48|Testar]]
> 
> PmWiki didn't like this and skipped the link, when I look at 
> <http://pmwiki.org/wiki/PmWiki/LinkMarkup> I can see what IRI 
> scheme that is allowed.
> 
> I looked at the source code and found
> 
> foreach(array('http:','https:','mailto:','ftp:','news:','gopher:','nap:',
>      'file:') as $m)
> 
> I get the impression that it's not possible to configure custom 
> IRIs (I never knew that they had that acronym) like 'x-yojimbo-item'?

There are several ways to configure custom IRI's.  The easiest
is to use an InterMap link.  Just add the following line to
either Site.InterMap or local/localmap.txt :

    x-yojimbo-item:     x-yojimbo-item:$1

This says that any url that begins with "x-yojimbo-item:"
should be rendered as "x-yojimbo-item:" followed by the
path.  In other words, it's a self-reference.

Pm




More information about the pmwiki-users mailing list