从文档集自定义ContentType的新项目表单 [英] Customize New Item Form For ContentType from Document Set

查看:86
本文介绍了从文档集自定义ContentType的新项目表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


 我们使用文档集内容类型,并发现布局文件夹中有NewDocSet.aspx作为从DocSet继承的内容类型的默认项目创建文件CONTENTTYPES。


 问题是该文件不包含任何字段引用。它的尺寸非常小,没有任何内容。


 我们的目标非常简单。对于我们的列表的新项目默认列表表单是基于此内容类型的客户。


 有线索吗?


 在Visual Studio中开发自定义表单是唯一的可能吗?




Shahid Roofi

解决方案


根据我的理解,您想要为NewDocSet.aspx进行自定义,您可以尝试创建自定义的aspx页面并通过JavaScript / JSOM进行自定义。


您可以指定docset内容类型以在SharePoint Designer中使用自定义页面。



以下是一个针对SharePoint的自定义解决方案供您参考(根据我的测试,该解决方案无法在SharePoint 2013上正常运行)。


https://gist.github.com/Oceanswave/e0cd45e2083e51c5026117dc74d65d41


这是一个用于在SharePoint 2013中创建JSOM文档集的线程供您参考。


http://www.c-sharpcorner.com/blogs/create-a-document-set-in-sharepoint-2013-using-jsom


或者,您可以查看通过VS解决方案进行自定义的解决方案。


https:/ /blogs.technet.microsoft.com/quentin/2014/09/08/creating-a-custom-new-document-set-form/


最好的问候,



 We use Document Set Content type and find that there is NewDocSet.aspx which is in layouts folder as the default item creation file for content types inheriting from DocSet contenttypes.

 Problem is that file does not contain any field references. its very small size file with nothing much in it.

 Our objective is very simple. that is to customer the new item default list form for our list which is based on this content type.

  Any clues?

  Is developing a custom form in Visual Studio the only possibility??


Shahid Roofi

解决方案

Hi,

As per my understanding, you want to do customization for  NewDocSet.aspx, you could try to create a custom aspx page and do customization by JavaScript/JSOM.

You could specify docset content type to use your custom page in SharePoint Designer.

Here is one custom solution for SharePoint online for your reference( the solution is not working properly for SharePoint 2013  on premise based on my test).

https://gist.github.com/Oceanswave/e0cd45e2083e51c5026117dc74d65d41

Here is one thread for creating document set by JSOM in SharePoint 2013 for your reference.

http://www.c-sharpcorner.com/blogs/create-a-document-set-in-sharepoint-2013-using-jsom

Or, you could check the solution which do customization by VS solution.

https://blogs.technet.microsoft.com/quentin/2014/09/08/creating-a-custom-new-document-set-form/

Best Regards,

Lee


这篇关于从文档集自定义ContentType的新项目表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆