简体   繁体   中英

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. 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();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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