list 在 sharepoint 中添加列项目作为链接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5074264/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 01:36:01  来源:igfitidea点击:

Adding column item as a link in sharepoint

sharepointlistsharepoint-2010

提问by Deepanjali

How do I add an item in a column as a link in a list in Sharepoint Server 2010?

如何在 Sharepoint Server 2010 中将列中的项目添加为列表中的链接?

What is the type of column which is showing link to another document?

显示指向另一个文档的链接的列的类型是什么?

回答by djeeg

Let me see if i understand you correctly.

让我看看我是否正确理解你。

You have seen the browse for document link in publishing sites, and you want this functionality in your standard list.

您已经在发布站点中看到了浏览文档链接,并且希望在标准列表中使用此功能。

Unfortuately you cannot do this, the standard data types are:

不幸的是你不能这样做,标准数据类型是:

http://office.microsoft.com/en-us/windows-sharepoint-services-help/create-a-site-column-HA010157769.aspx

http://office.microsoft.com/en-us/windows-sharepoint-services-help/create-a-site-column-HA010157769.aspx

So you are left with just plain old Hyperlink, which doesn't have the browse for document box.

所以你只剩下普通的旧超链接,它没有浏览文档框。

If you try to create a site column with the datatype Publishing Hyperlink, and add it to your list, you should get an error message when you try to browse

如果您尝试使用数据类型发布超链接创建网站栏,并将其添加到您的列表中,您应该在尝试浏览时收到一条错误消息

"Cannot complete action"

“无法完成操作”

回答by GoG

You can add Calculated Valuecolumn in the list, and specify the formula for the column which will redirect you to the desired location.

您可以在列表中添加计算值列,并指定该列的公式以将您重定向到所需位置。

回答by Craig Gjerdingen

You can do this with jQuery by parsing the link from the title with link or edit button. But also, if you want a non client side solution, there is a good article here http://www.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=70on how to add a column and using a workflow fill that column with a "quick link" that the user can provide to people wanting to link to there document. It is a general approach that I think you can see could be adapted to various needs.

您可以通过使用链接或编辑按钮解析标题中的链接来使用 jQuery 执行此操作。而且,如果您想要非客户端解决方案,这里有一篇很好的文章http://www.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=70关于如何添加列和使用工作流用“快速链接”填充该列,用户可以将其提供给想要链接到该文档的人。这是一种通用方法,我认为您可以看到它可以适应各种需求。

For a head start on a jQuery solution check out http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/ebda8a32-a6cc-49fa-b7e4-81f762b26266/

要获得 jQuery 解决方案的先机,请查看http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/ebda8a32-a6cc-49fa-b7e4-81f762b26266/

回答by Artem

In order to link document with list item, you can create "Hyperlink with formatting and constraints for publishing" site column and add it to any list. If you need to browse and upload multiple files per list item, you can use 3rd party add-ons like Sparqube Documentcolumn.

为了将文档与列表项链接,您可以创建“具有格式和发布约束的超链接”站点栏并将其添加到任何列表。如果您需要浏览和上传每个列表项的多个文件,您可以使用 3rd 方附加组件,如Sparqube 文档列。