[Pmwiki-users] help needed for custom markup

Knut Alboldt pmwiki
Tue Dec 28 14:38:33 CST 2004


Benoit Pointet schrieb:
> thanks for it works perfectly when the URL are relative 
> ("/anywhere/track.png") and not absolute 
> ("http://myserver.com/anywhere/track.png").
> it looks like the absolute URLs generated are then parsed because they 
> have a http:// into them?

try:

Markup('play',
        'directive',
        '/PLAY:(\S*)/e',
        'Keep(\'<a href="/somewhere/player.php?path=$1" 
target="player"><img src="track.png"/>play this song</a>\')');

but I think Pm's suggestion is better so better try his ;-)

Knut



More information about the pmwiki-users mailing list