【问题标题】:How can I display a specific Edit Form based on the current View?如何根据当前视图显示特定的编辑表单?
【发布时间】:2016-03-30 15:06:10
【问题描述】:

我在 SharePoint Designer 中为相同的内容类型创建了一些自定义编辑表单。有什么方法可以将特定的编辑表单绑定到 SharePoint 中的每个列表视图或用户组,还是我必须编写一些东西来处理逻辑?

【问题讨论】:

    标签: sharepoint-2013 sharepoint-designer


    【解决方案1】:

    通过 javascript 进行的修改可以通过 elements.xml(农场解决方案)绑定到内容类型或列表模板,但是要设置自定义表单(应用程序页面),您必须通过脚本 (powershell) 来执行此操作。

    您应该能够遍历列表并设置编辑表单的 URL。 SPContentType 对象上有一个 EditFormUrl 参数,当然,powershell 也有一个等效参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-16
      • 1970-01-01
      • 1970-01-01
      • 2011-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多