在SharePoint 2010中,列表设置为打开模态对话框窗口,用于项目插入和更新。我知道这些对话框可以通过列表在列表中禁用,通过列表设置 - >“高级”和“对话框中的启动表单”选项。有没有办法为所有列表,当前和未来全球禁用模态对话框窗口?

有帮助吗?

解决方案

您可以使用PowerShell更改它。这可能会对您有所帮助:

Get -Spscripts:使用PowerShell更改SharePoint列表设置 - 第2部分:高级设置

本文显示了如何通过编程方式更改列表的高级设置,并且在标题为“对话框”的文章底部的表行赋予您感兴趣的属性。将两者放在一起会给您:

#Change these variables to your site URL and list name
$site = Get-SPSite http://portal
$listName = "Shared Documents"

#Walk through each site in the site collection
$site | Get-SPWeb | ForEach-Object {

#Get the list in this site
$list = $_.Lists[$listName]

#Launch forms in dialog?
#Setting this to $true will set it to 'No' in the UI
$list.NavigateForFormsPages = $true

#Update the list
$list.Update()
}

#Dispose of the site object
$site.Dispose()
许可以下: CC-BY-SA归因
scroll top