[pmwiki-users] Links with other protocols
Clemens Gruber
cgruber at uni-osnabrueck.de
Wed May 10 09:03:18 CDT 2006
Hello,
I've tried to enable links with another protocol in PmWiki (Real
streaming "rtsp", e.g.
rtsp://xy.rz.uni-osnabrueck.de/video.rm, by default not supportet), I
added in config.php:
# protocol rtsp as link
$IMap['rtsp:'] = 'rtsp:$1';
$LinkFunctions['rtsp:'] = 'LinkIMap'
this works, but I don't know whether this is by chance. ;-) I was first
exposed that the item
$IMap['rtsp:'] = 'rtsp:$1';
works alone. But the second line is necessary.
Perhaps I'm one of those with a "weak heart"
(http://pmwiki.org/wiki/PmWiki/MakeLink,
http://pmwiki.org/wiki/PmWiki/LinkIMap)
Is this above a correct use and what are the differences to a markup
like this:
$IMapLinkFmt['http:'] = "<a class='httplink urllink'
href='\$LinkUrl'>\$LinkText</a>";
Kind regards
Clemens Gruber
More information about the pmwiki-users
mailing list