[Mediawiki-l] MediaWiki-l Digest, Vol 49, Issue 87

Christopher.Reigrut at Key.com Christopher.Reigrut at Key.com
Wed Oct 31 15:37:51 UTC 2007




You can do it by simply adding file:// to the list of protocols handled in
LocalSettings.php.  See http://www.mwusers.com/forums/showthread.php?t=3471

A couple of additional limitations / gotchas:
1)  Obviously those will be file links, so the permissions will be based on
the user clicking on them.  This can be good and bad...
2)  Generally, using drive letters under windows is problematic since most
folks don't have the drives mapped identically.  Use FQNs where possible.
3)  You can't have spaces in the file or directory names.  You can get
around this by urlencoding the links, or using the 8.3 names in Windows.

The upshot of 2 & 3 above is that a link to S:\Important Files\Foo.xls
becomes
[file://ServerName\ShareName$\Important%20Files\Foo.xls My link to the
file]
Christopher M. Reigrut
Applications Systems Architect
Key Technology Services / KeyBank
1000 South McCaslin Boulevard
Superior, Colorado 80027
720-304-1049


> ----- Message from "Charlie Markwick" <charlie-markwick at southcot.
> com> on Wed, 31 Oct 2007 08:59:12 -0000 -----
>
> To:
>
> "MediaWiki announcements and site admin list" <mediawiki-l at lists.
> wikimedia.org>
>
> Subject:
>
> [Mediawiki-l] Links to files
>
> We are using a wiki for internal policies and procedures and want to
> create links to files.
>
> I had assumed that using:-
>
> [file://///FileStore/documents/AddingDomains.pdf Adding Domains] would
> give me a clickable link but it doesn't. Is there a way of getting this
> to work?
>
> Charlie Markwick



*******************************************************************************
This communication may contain privileged and/or confidential information. It
is intended solely for the use of the addressee. If you are not the intended
recipient, you are strictly prohibited from disclosing, copying, distributing
or using any of this information. If you received this communication in error,
please contact the sender immediately and destroy the material in its entirety,
whether electronic or hard copy. This communication may contain nonpublic personal
information about consumers subject to the restrictions of the 
Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose
such information for any purpose other than to provide the services for which
you are receiving the information.

127 Public Square, Cleveland, OH 44114
*******************************************************************************


If you prefer not to receive future e-mail offers for products or services from
Key send an e-mail to DNERequests at key.com with 'No Promotional E-mails' in the
SUBJECT line.


More information about the MediaWiki-l mailing list