Solved

Link to local file in wiki

Posted on 2011-03-03
4
868 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Read about why website design really matters in today's demanding market.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

776 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