Solved

Link to local file in wiki

Posted on 2011-03-03
4
867 Views
Last Modified: 2012-05-11
Our company has a corporate wiki and we are trying to include links to local files on the server. The links could be to like \\servername\file or file:///Z:/path/file. We have uniform drive mappings so either would work. I can't seem to find the syntax to get it to work.
I tried using <a href=, but <a> isn't one of the html tags that wikipedia supports.
I'm not sure if I picked good zones or not.
0
Comment
Question by:TommySzalapski
  • 3
4 Comments
 
LVL 9

Expert Comment

by:AriMc
ID: 35032401
Wikimedia doesn't understand smb-links by default. Unless you want to share those files through a web-server, you need to have an extension on you wiki, like this:

   http://www.mediawiki.org/wiki/Extension:SmbLinks

0
 
LVL 37

Author Comment

by:TommySzalapski
ID: 35032566
That says that it will "convert file:///// links to smb:// and vice versa." Neither kind work so what's the point? We all are using Windows, I just can't get any kind of file link to show up as a hyperlink.
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 0 total points
ID: 35032702
I may have found it.
Modify the includes/Parser.php and add this line under the lines that look similar
$text = $this->subReplaceExternalLinks( $text, 'file', false );
I'm about to test it out as soon as the vmware player downloads so I can get at the file system.

http://meta.wikimedia.org/wiki/MediaWiki%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94#Is_it_somehow_possible_to_use_a_.22file.22_URI-qualifier_for_local_intranets_e.g._.5Bfile:.2F.2Flocalhost.2FC:_C-Drive.5D.3F
0
 
LVL 37

Author Closing Comment

by:TommySzalapski
ID: 35225515
That worked
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wordpress url rewriting plugin 5 46
Chrome: How to show the Bookmarks bar? 4 18
FireFox Add-on Plugins 2 20
Divi Them Help with Full Width header 20 24
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now