Philip, In 1.7.1, I found the $wgUrlProtocols in /includes/DefaultSettings.php. Just add a comma after the last protocol in the array and add 'file://' to the end. Then file links will work just like external hyperlinks.
Also, there's a nifty extension called FileLinkExtension I think. It puts a button on the editor that brings up a dialog box for browsing for the file to link to.
Taylor
----- Original Message ---- From: "Vasiliadis, Thomas" T.Vasiliadis@schlemmerblock.de To: MediaWiki announcements and site admin list mediawiki-l@Wikimedia.org Sent: Tuesday, October 17, 2006 7:36:12 AM Subject: Re: [Mediawiki-l] Link to a Windows-Fileshare
You have to add the Protololl to the Variable $wgUrlProtocols in Localsettings.php (root directory of Wiki)
I have coppied the line of my wiki below
#Hinzufügen des Protokolls:"file:\" $wgUrlProtocols = 'http://|https://|ftp://|irc://|gopher://|news:|mailto:|file:\\';
To use it you have to use this syntax:
[file:\server\share1$\myfolder\1 my link]
You are free to use slashes instead of backslashes in order to use it with *nix systems
Have fun ------------------------------------------------------------------------------------- Thomas Vasiliadis VMG Vertriebs Marketing Gesellschaft mbH
Netzwerkadministration
Postanschrift: Postfach 2063 D - 67510 Worms NL:Hausanschrift: Niedesheimer Str. 18 D - 67547 Worms
Tel: +49 (0)6241 2026 112 Fax: +49 (0)6241 2026 312
E-mail: t.vasiliadis@schlemmerblock.de Internet: http://www.schlemmerblock.de
Bürozeiten:
Mo.-Do.: 09:00 - 13:00 Uhr und 14:00 - 16:00 Uhr sowie Fr.: 09:00 - 13:00 Uhr
------------------------------------------------------------------------------------- Dieses E-Mail einschließlich seiner Anhänge ist vertraulich und kann privilegierte Informationen enthalten, die ausschließlich für den/die Empfänger bestimmt sind. Wenn Sie nicht der richtige Empfänger sind, unterlassen Sie bitte das Lesen, Kopieren, die Benutzung oder die Weitergabe dieser Informationen an Dritte, löschen Sie bitte die Nachricht und ihre Anhänge sowie hiervon gegebenenfalls existierende Kopien und benachrichtigen Sie den Absender durch Rückantwort. -------------------------------------------------------------------------------------
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] Im Auftrag von Eagleone Gesendet: Dienstag, 17. Oktober 2006 14:30 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] Link to a Windows-Fileshare
On 10/17/06, Philip Sahli hombre@gmx.ch wrote:
Hi
How can I insert a Link to a Windows-Fileshare like that one? \server\share1$\myfolder\1
I think with: [file://///server/share1$/myfolder/1 my link] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi
You should _never_ edit DefaultSettings.php. Instead, make your changes in LocalSettings.php.
Otherwise you will have issues with upgrading to a newer version of mediawiki.
-- chris
mediawiki-l-bounces@Wikimedia.org schrieb am 17.10.2006 15:46:59:
Philip, In 1.7.1, I found the $wgUrlProtocols in /includes/DefaultSettings. php. Just add a comma after the last protocol in the array and add 'file://' to the end. Then file links will work just like external hyperlinks.
Also, there's a nifty extension called FileLinkExtension I think. It puts a button on the editor that brings up a dialog box for browsing for the file to link to.
Taylor
On 10/17/06, christoph.huesler@css.ch christoph.huesler@css.ch wrote:
Hi
You should _never_ edit DefaultSettings.php. Instead, make your changes in LocalSettings.php.
Otherwise you will have issues with upgrading to a newer version of mediawiki.
That is to say, you should insert this in LocalSettings.php:
$wgUrlProtocols[] = 'file://';
mediawiki-l@lists.wikimedia.org