[pmwiki-users] Using links to like this in markup file:\\machine_name\dir\file.doc

Crisp, Steve [UK] SCRISP at ngms.eu.com
Tue Nov 22 08:36:42 CST 2005

> From: Patrick R. Michaud, Sent: 22 November 2005 14:11
> Try adding the following to local/config.php:
>     Markup('file:\\\\', '<urllink',
>       "/file:\\\\\\\\([^\\s<>\"{}|^`()[\\]']+)/e",
>       "str_replace('\\\\\', '/', PSS('file:////$1'))");
> Demonstrated at http://www.pmwiki.org/wiki/Test/FileUrls.


Thanks for getting back to be so quickly.  I found you have to add five
slashes '/' (not four) to the last part of the php code below making the

     Markup('file:\\\\', '<urllink',
       "str_replace('\\\\\', '/', PSS('file://///$1'))");

Next thing ... I noticed that when this markup is enclosed in [[ | ]] it
does not work e.g. [[file:\\machine_name\dir\file.doc | This is my
doc]].  Also the alternative markup [[This is my doc ->
file:\\machine_name\dir\file.doc]] has the same issue.

Sorry to be pain, but this would solve all of my link issues.


More information about the pmwiki-users mailing list