2

Is there a possibility in MediaWiki to create an external link to a windows network folder like

               \\server\folder1 ???? 

It does not work using syntax of external or internal links ;-(

Any help is appreciated.

Mahahari
  • 901
  • 1
  • 16
  • 35

2 Answers2

1

You can use $wgUrlProtocols (in LocalSettings.php) do define what url protocols MediaWiki should recognize. Adding file, like this: $wgUrlProtocols[] = 'file://'; You should then be able to link to your network folder, e.g. [file://///server/folder Click here to go to folder] .

For further discussion about how to create that url, and what browsers will actually let you follow it, see What are the ways to make an html link open a folder

This setting will also make your network folder show up on Special:LinkSearch.

Community
  • 1
  • 1
leo
  • 6,927
  • 6
  • 41
  • 62
  • Thanks for your reply. I added as you mentioned. It is appearing as link but not opening on clicking that link – Mahahari Jun 10 '16 at 03:22
  • Only some browsers will actually allow you to open such a link, see http://stackoverflow.com/questions/855614/what-are-the-ways-to-make-an-html-link-open-a-folder#855658 – leo Jun 10 '16 at 07:38
-1

$wgUrlProtocols is the array.
To add file:// to $wgUrlProtocols in LocalSettings.php:

array_push($wgUrlProtocols, "file://");

Milad Bahmanabadi
  • 1,043
  • 11
  • 21