Solved

Link to local file in wiki

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Read about why website design really matters in today's demanding market.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

707 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

12 Experts available now in Live!

Get 1:1 Help Now