How to Link to a Document content type but linking to a Folder
I have implemented the known "Link to a Document" content type to a Document Library (referenced below). This works fine to documents, but we need to also enter UNC paths to Folders like file://\\servername\sharename\foldernameWe can NOT create shortcuts to these folders, which is a work around someone else published.If you add the Hyperlink field it allows you to enter a UNC path to externally stored folder just fine. So there must be some way to make this Link to a Document content type also open UNC Folders accurately.DOES ANYONE KNOW HOW?----------------------------- Code Snippet function HasValidUrlPrefix_Override(url) { var urlLower=url.toLowerCase(); if (-1==urlLower.search("^http://") && -1==urlLower.search("^https://") && -1==urlLower.search("^file://")) return false; return true; } Replace "HasValidUrlPrefix" to "HasValidUrlPrefix_Override" in the newlink.aspx Linda Chapman | SharePoint Consultant | My Blog: http://LindaLeeChapman.Spaces.Live.com
February 23rd, 2010 2:16am

OK, I finally figured out that it won't let you connect to a Folder only if you use the built in "Link to Document" content type for some reason. Solution: If you create your own custom content type then it does allow you to connect to Folders too. I documented this in my blog, you can read the step by step there. http://lindaleechapman.spaces.live.com/blog/cns!F1562A7E3898DAB2!311.entry Linda Chapman | SharePoint Consultant | My Blog: http://LindaLeeChapman.Spaces.Live.com
Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2010 4:54am

Please mark your own posts as an answer in such cases. (Moderator)FAQ sites: (SP 2010) http://wssv4faq.mindsharp.com; (v3) http://wssv3faq.mindsharp.com and (WSS 2.0) http://wssv2faq.mindsharp.com Complete Book Lists (incl. foreign language) on each site.
February 23rd, 2010 7:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics