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();
精彩评论