简体   繁体   English

SharePoint Wiki页面-隐藏列不显示在Wiki页面上

[英]SharePoint Wiki Page - Hide Columns From Appearing on Wiki Page

I created a new SharePoint wiki library and I added additional columns to the wiki library to use as metadata to organize the pages into different views. 我创建了一个新的SharePoint Wiki库,并在Wiki库中添加了其他列,以用作元数据来将页面组织成不同的视图。 The issue is now when I create a new wiki page, the added columns appear on the bottom of the page. 现在的问题是,当我创建一个新的Wiki页面时,添加的列将显示在页面的底部。 Anyone know how to hide these columns from appearing on the wiki pages? 有人知道如何隐藏这些列以使其不显示在Wiki页面上吗?

Thanks 谢谢

Each field has a property " ShowInEditForm ", which, as its title says, hides the field from editing when the value is set to false . 每个字段都有一个属性“ ShowInEditForm ”,正如其标题所述,当将该值设置为false时,该字段将隐藏该字段,以防止编辑。

However, you cannot change the value of this property through web interface. 但是,您无法通过Web界面更改此属性的值。 What you can do, is create a PowerShell script, which should look something like this: 您可以做的是创建一个PowerShell脚本,该脚本应如下所示:

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

$site = new-object Microsoft.SharePoint.SPSite("http://yourserver.com")   
$siteweb = $site.OpenWeb()   
$list = $siteweb.Lists["YourWikiLibrary"]  
$list.Fields["YourNotEditableField"].ShowInEditForm = false;
$list.Fields["YourNotEditableField"].Update();

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

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