Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've seen some old discussions about this but nothing current, so thought I'd throw it out there:

Using MOSS/WSS 3.0, I'm looking for ways (without Visual Studio) to allow a new Link to a Document to be created without forcing validation of the http: or https: prefix. Know that I can create using a dummy URL and then edit afterward but that's not acceptable in this instance.

Thoughts?

share|improve this question
    
Could you be a bit more specific at what you want to do? –  spevilgenius Sep 26 '11 at 18:49
    
I have a document library in a Project Web Access (WSS3.0) workspace and some users have files larger than I want to allow in the content database. In order to have the links to those files commingled with docs in the library I'm using the "Link to a Document" content type. There's a validation function baked into newlink.aspx that forces the URL to contain the http or https prefix. We can work around that by changing to file: on editform.aspx because the validation isn't present there but users reject that solution. –  SharePointEric Sep 30 '11 at 15:17
    
So the goal is to allow a user to go to New - Link to Document and select a document to link to? What is the expected outcome? Sorry, still missing the sequence you want to happen! –  spevilgenius Oct 2 '11 at 11:04
    
So the current user experience when using Link to a Document is simply a prompt for a URL and a description, where the user simply pastes or enters a URL. That URL must begin with http or https due to validation baked into the newlink.aspx form. My use case is that the target isn't a URL but rather a UNC path for a network storage location, e.g. \myshare\folder\file.doc. UNC paths are addressable using the file:// prefix but newlink.aspx won't accept that as a valid URL. –  SharePointEric Oct 6 '11 at 12:51
    
Is jQuery an option here or not? –  spevilgenius Oct 12 '11 at 16:05

3 Answers 3

in SharePoint exist a special content type called "link to document" after you added this to your list or library you can store file links to http and unc too.

How to enable link to document you should check out the following link. http://vspug.com/mindykelly/2007/09/11/add-a-link-to-a-document-within-a-document-library-in-moss/

I'm not sure if you can add unc directly or if you need to add the url representance of a file link. You should check out the uri schema for file on the wikipedia http://en.wikipedia.org/wiki/File_URI_scheme

Path formated like this can also be added to normal link lists too as John Chapman allready recommended.

share|improve this answer

To add a UNC path to a Links list, use file:// in front of it and change the backslashes to forward slashes. For example: \share\folder\file.doc would be file://share/folder/file.doc

share|improve this answer
    
John, this isn't a links list unfortunately. Have to commingle the links in question with docs in a library so I'm using the "Link to a Document" content type. –  SharePointEric Sep 30 '11 at 15:10

Eric,

I saw this post out on Technet earlier that may be what you're looking for. Admittedly, I haven't tried it, but it looked like it might work.

http://social.technet.microsoft.com/Forums/en/sharepointadmin/thread/3f2c34cc-5686-4e03-ba26-092aaa29ff33

I see you're looking for a non-VS route, I've done something similar with a DVWP before, using the XSLT to write a UNC path instead of an http path, but it's not a very "reusable" solution. I suppose if you're just looking for a view or two it may work for you though.

share|improve this answer
    
Yeah, saw that post myself and discarded it because a no-code solution is required here and the solution would need to be a little more reusable than converting to a DVWP. Thanks for the thought! –  SharePointEric Sep 30 '11 at 15:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.