Add UNC and file:// support

rconstantine - March 10, 2009 - 15:52
Project:Link
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:rconstantine
Status:needs review
Description

I have need for links to intranet resources via UNCs. I have added support for this. Users enter a UNC and if the "Title as UNC/URL link" formatter is chosen, the UNC will be displayed as a file:// link. The original UNC is stored in the DB. Note that these types of links work natively in IE, but not FF. There are two work-arounds for Firefox which I note in the formatter's comments. Basically, you can either set certain preferences or you can install an add-on called ietab to get those links working. I prefer the preference settings method.

I haven't extensively tested the alternative which is to have your users convert backslashes to forward slashes and place a "file://///" at the beginning of their path when they enter it in. FF requires (?) the five forward slashes IIRC.

AttachmentSize
link.module.patch5.25 KB

#1

hass - May 17, 2009 - 22:50

Subscribe. Might break linkchecker... unverified.

#2

bricef - November 3, 2009 - 16:24

I try to add "file" protocol. It's a very tought work cause i had to change several filter function.

Do you have a solution. This protocol can be very helpful in order to link some intranet samba server.

#3

bricef - November 3, 2009 - 16:28
Version:6.x-2.5» 6.x-2.x-dev
 
 

Drupal is a registered trademark of Dries Buytaert.