我在SharePoint Designer中为相同的内容类型创建了一些自定义编辑表单。 有没有办法在SharePoint中本地绑定特定的编辑表单到每个列表视图或用户组,还是我必须写一些东西来处理逻辑?
I have a few custom Edit forms I've created in SharePoint Designer for the same content type. Is there any way to bind a specific edit form to each list view or user group natively in SharePoint, or will I have to write something to handle the logic?
最满意答案
通过javascript修改可以通过elements.xml(场解决方案)绑定到内容类型或列表模板,但是要设置自定义表单(应用程序页面),您必须通过脚本(powershell)执行此操作。
您应该能够遍历列表并只设置编辑表单的URL。 SPContentType对象上有一个EditFormUrl参数,当然还有powershell的等价物。
Modifications through javascript can be bound to content types or list templates through elements.xml (farm solution) however to set custom forms (application pages), you will have to do this through a script (powershell).
You should be able to loop through the lists and just set the URL for the edit-form. There is a EditFormUrl parameter on the SPContentType object and an equivalent will exist for powershell of course.
更多推荐
发布评论