[Mediawiki-l] Link Files from File-Server

johan.boye at latecoere.fr johan.boye at latecoere.fr
Fri Apr 27 09:42:52 UTC 2007


> Hi all...
> 
> is it possible to link files from a local File-Server into mediawiki (1.8.2-12), like a HTML-link?

Are you talking about some link like "file://myfiler/myshareCIFS" ?

Add in your LocalSettings.php
$wgUrlProtocols = array(
        'http://',
        'https://',
        'ftp://',

        'file://',

        'irc://',
        'gopher://',
        'telnet://', // Well if we're going to support the above.. -ævar
        'nntp://', // @bug 3808 RFC 1738
        'worldwind://',
        'mailto:',
        'news:'
 );

And then, you can do 
[file://myfiler/share/mynastyword.doc  My Link]  or
[file:////myfiler/... ]

But it will mostly work with IE, not firefox. Is there a way to fix it ?

> Cheers,
> 
> Tim

  Johan

"Les informations contenues dans ce message électronique peuvent être de nature confidentielles et soumises à une obligation de secret. Elles sont destinées à l'usage exclusif du réel destinataire. Si vous n'êtes pas le réel destinataire, ou si vous recevez ce message par erreur, merci de le détruire immédiatement et de le notifier à son émetteur."

 "The information contained in this e-mail may be privileged and confidential. It is intended for the exclusive use of the designated recipients named above. If you are not the intended recipient or if you receive this e-mail in error, please delete it and immediately notify the sender."




More information about the MediaWiki-l mailing list