简体   繁体   English

SharePoint 2010-创建自定义文档库模板

[英]SharePoint 2010 - Creating a custom document library template

I'm trying to figure out if it is possible to create a custom document library template for SharePoint 2010. When a user clicks on the Libraries link on the quick launch menu of a new SharePoint site, and then clicks the Create button, the Create dialog is launched. 我试图弄清楚是否可以为SharePoint 2010创建自定义文档库模板。当用户单击新SharePoint网站的快速启动菜单上的“库”链接时,然后单击“创建”按钮,对话框启动。

I know this dialog window hosts a Silverlight control, but obviously there is a way to create custom template types in this window. 我知道此对话框窗口包含Silverlight控件,但是显然有一种方法可以在此窗口中创建自定义模板类型。 There is even a category that is called Blank & Custom. 甚至还有一个称为“空白和自定义”的类别。 I've tried copying and modifying the DocumentLibrary feature located in the following location - C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\14\\TEMPLATE\\FEATURES, but that didn't seem to work. 我尝试复制和修改位于以下位置的DocumentLibrary功能-C:\\ Program Files \\ Common Files \\ Microsoft Shared \\ Web服务器扩展\\ 14 \\ TEMPLATE \\ FEATURES,但这似乎不起作用。

Thanks for reading, I'm sure the answer is obvious but I've been stumbling over Google and MSDN all morning trying to figure this out but I haven't had any luck. 感谢您的阅读,我敢肯定答案是显而易见的,但是整个上午我一直在努力寻找Google和MSDN,以求找出答案,但是我没有任何运气。

Well, unfortunately the answer is not that obvious. 好吧,不幸的是答案并不那么明显。 You'll have to create a new List Definition (a document library is actually a list). 您必须创建一个新的列表定义(文档库实际上是一个列表)。 For that there are several ways, but as a developer, I guess the most common way is to do that through Visual Studio. 为此,有几种方法,但是作为开发人员,我想最常见的方法是通过Visual Studio来实现。

A basic tutorial that will guide you through the steps can be found here: 可在此处找到指导您完成这些步骤的基本教程:

http://msdn.microsoft.com/en-us/library/ms466023.aspx http://msdn.microsoft.com/en-us/library/ms466023.aspx

After you deploy your solution, a new list template (or document library, depending what you created) will show up in the dialog. 部署解决方案后,对话框中将显示一个新的列表模板(或文档库,具体取决于您创建的内容)。

Yes, it is not that obvious at all. 是的,一点都不明显。

Most of the Microsoft documentation is now based on using Visual Studio 2010 and are more focused on the lists than on the document libraries. 现在,大多数Microsoft文档都是基于使用Visual Studio 2010的,并且更多地关注列表而不是文档库。 By the way, as told by Erwin, document libraries in SharePoint 2010 seems to have become lists, but the lack of documentation regarding the creation of custom lists remains anyway, so after having perform some successful trials I have decided to publish a step by step guide. 顺便说一句,正如Erwin所言,SharePoint 2010中的文档库似乎已经成为列表,但是仍然缺少有关创建自定义列表的文档,因此在进行了一些成功的试验之后,我决定逐步发布指南。

Sharepoint 2010 custom ducoment library Sharepoint 2010自定义ducoment库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM