I would like Zwiki support for UNC-style linking. This proposal is a RFC.

UNC style linking will automatically hyperlink UNC-resource (windows filesystems, printers, etc).

e.g. \\SERVER\SHARE

Resources:


implementation comments --DeanGoodmanson, 2003/03/25 15:28 GMT
How should spaces in the link be dealt with?

+1, btw. Needed this 3 days after you posted it. This is a great way to associate external files with the wiki, and alleviates problems (size, management, ZODB) with attaching files to ZWiki pages. I had a frustrating time getting this style of link to work within a STX link. (had to switch the forward slashes.)

implementation comments --PieterB, 2003/03/25 15:32 GMT

> * It can be enclosed in quotes: "\\SERVER\SHARE\My Documents", or other token?

We might use the freeform link standard [\\SERVER\SHARE\Filename with space.doc]]

PieterB

implementation comments --DeanGoodmanson, 2003/03/25 19:48 GMT
Sounds OK.

We really need to put together a spec. for NG freeform links. I think the number of incantations on it is no more than 7 options, including wish-list features.

I recently had a peer put a plain URL into free-form link. I didn't realize that that was accepted! ~! ..make that "8." ;-)

implementation comments --Simon Michael, 2003/03/26 16:39 GMT
PieterB <pieterb@gewis.nl> writes:
> We might use the freeform link standard
> [\\SERVER\SHARE\Filename with space.doc]]

That sounds like the way to do it. _renderLink is due for cleanup, but feel free to hack it in and try it out. Would this do it ?:

 if re.match(r'\\',m): return '<a href="file:%s">%s</a>' % (m, m)

before "# look for a page with a name matching this". Would these be cross-platform or microsoft-only ?

implementation update? --DeanGoodmanson, 2003/06/10 21:55 GMT
Anyone tried implementation of this yet?

I'm tempted to suggest that these links open a new window...


comments:

possibility --DeanGoodmanson, Wed, 10 Sep 2003 11:44:40 -0700 reply
Has anyone gotten these links to work in a browser outside of IE??

Short term hack (YMMV):

  1. Add \\'s to your regex for allowable URL characters.
  2. UNC links may work when in
    • brackets
    • preceded by file: