制作一个包含文件系统链接的文档库
我想在我们的共享点网站上创建一个“主”列表或文档库,其中的链接指向我们不同网站上的各种文档,但也指向文件系统中的文档,例如。 \someshare\somefile
我希望能够对文件夹中的这些链接进行排序。我知道我可以使用列表并按列设置分组,但这只会给我一个 2 层深的文件夹结构。
可添加到文档库的“链接到文档”内容类型适用于指向 sharepoint 中的文档,但它要求 url 以 http 或 https 开头。有没有什么方法可以添加指向文档库的链接,该链接将指向位于网络共享上的文件?注意:由于某些文件大小较大,因此无法将这些文件上传到共享点。
提前致谢。
I want to make a "master" list or document library on our sharepoint site of links that point to various documents on across our different sites but also ones located in the filesystem eg. \someshare\somefile
I would like have to have the ability to sort these links in folders. I know I can use a list and set the group by columns, but that only gives me a folder structure that is 2 levels deep.
The "Link to Document" content type that can be added to a docoument library works fine for point to documents in sharepoint, but it requres that the url starts with http or https. Is there any way to add a link to a document library that will point to files located on a network share? Note: Due to some large file sizes uploading these files to sharepoint is not an option.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于遇到同样问题的任何人,我在这里找到了一个出色且简单的解决方案: http://os.com/blog/linking-to-file-shares-from-sharepoint-document-libraries
基本上它涉及修改您的布局文件之一以在开始时接受 file://的一个链接。
编辑:
该链接已消失,因此解决方法如下:
在 Sharepoint Web 服务器上查找文件 newlink.aspx。默认位于此处:Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\newlink.aspx
每当对布局文件进行任何更改时,我建议创建一个备份以防万一。
将以下函数添加到脚本部分:
现在您可以更改 ValidateInput() 和 TestDir() 函数以调用刚刚添加的函数。将 HasValidUrlPrefix(folderUrl) 的每个实例更改为 HasValidUrlPrefix_Override(folderUrl)。应该有 2 个实例需要更改。在我原始的未编辑文件中,它们是第 43 行和第 62 行。
保存更改并运行 iisreset。
For anyone who has this same problem I found an excellent and simple solution here: http://os.com/blog/linking-to-file-shares-from-sharepoint-document-libraries
Basically it involves modifying one of your layout files to accept file:// at the start of a link.
EDIT:
That link has dissapeared so here is the fix:
Find the file newlink.aspx on your Sharepoint web server(s). Located here by default: Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\newlink.aspx
Whenever making any changes to layout files I recommend creating a backup of the just in case.
Add the following function to the script section:
Now you have you to change the ValidateInput() and TestDir() functions to call the function you just added. Change every instance of HasValidUrlPrefix(folderUrl) to HasValidUrlPrefix_Override(folderUrl). There should be 2 instances to change. On my original unedited file they were lines 43 and 62.
Save the changes and run iisreset.