开发者

SharePoint Wiki Page - Hide Columns From Appearing on Wiki Page

开发者 https://www.devze.com 2023-01-13 21:46 出处:网络
I created a new SharePoint wiki library and I added additional co开发者_StackOverflow中文版lumns to the wiki library to use as metadata to organize the pages into different views. The issue is now whe

I created a new SharePoint wiki library and I added additional co开发者_StackOverflow中文版lumns to the wiki library to use as metadata to organize the pages into different views. The issue is now when I create a new wiki page, the added columns appear on the bottom of the page. Anyone know how to hide these columns from appearing on the wiki pages?

Thanks


Each field has a property "ShowInEditForm", which, as its title says, hides the field from editing when the value is set to false.

However, you cannot change the value of this property through web interface. What you can do, is create a PowerShell script, which should look something like this:

[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();
0

精彩评论

暂无评论...
验证码 换一张
取 消