Solved

Link to local file in wiki

Posted on 2011-03-03
4
870 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

732 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