在SharePoint 2013 中使用文档库Scheduling (计划公布功能)
2014-08-09 09:31
399 查看
本文讲述在SharePoint2013 中使用文档库Scheduling (计划公布功能)的步骤和注意的事项。
文档库Scheduling (计划公布功能)
用于设定当文档通过审批后特定的时间区间内才干够被普通用(非管理员,审批人员和作者)户看到。也就是说要启用Scheduling,必须先启用文档库的内容审批和小版本号控制。这是官方文档的说法,可是笔者注意到除此之外Draft
Item Security要设置成Only users who can approveitems (and the author of the item) 才行:
另外,当在系统文档库上启用Scheduling时,SharePoint会自己主动加列PublishingExpirationDate(Scheduling End Date) 和 PublishingStartDate (Scheduling Start Date)
可是当又一次新建一个文档库时,启用Scheduling时上面两列不会自己主动加入,能够有两个方法解决
1. 使用系统文档库模板
a. 将系统文档库存为模板,假设看不到另存模板的连接能够直接使用/_layouts/15/savetmpl.aspx?List=ListID能够从文档库设置中找到,或者直接把listedit.aspx换成savetmpl.aspx: /_layouts/15/listedit.aspx?List=%7B465AD054%2DD81B%2D495F%2DAA9F%2D6E44053A3B63%7D
b. 再使用a
步得到的文档库模板新建文档库,这样新建出来的文档库启用Scheduling时上面两列就会自己主动加入了
2. 启用Scheduling后从Site column
中加入这两列PublishingExpirationDate(Scheduling End Date)
和 PublishingStartDate(Scheduling Start Date)
用PowerShell的话能够这样写:
文档库Scheduling (计划公布功能)
用于设定当文档通过审批后特定的时间区间内才干够被普通用(非管理员,审批人员和作者)户看到。也就是说要启用Scheduling,必须先启用文档库的内容审批和小版本号控制。这是官方文档的说法,可是笔者注意到除此之外Draft
Item Security要设置成Only users who can approveitems (and the author of the item) 才行:
另外,当在系统文档库上启用Scheduling时,SharePoint会自己主动加列PublishingExpirationDate(Scheduling End Date) 和 PublishingStartDate (Scheduling Start Date)
可是当又一次新建一个文档库时,启用Scheduling时上面两列不会自己主动加入,能够有两个方法解决
1. 使用系统文档库模板
a. 将系统文档库存为模板,假设看不到另存模板的连接能够直接使用/_layouts/15/savetmpl.aspx?List=ListID能够从文档库设置中找到,或者直接把listedit.aspx换成savetmpl.aspx: /_layouts/15/listedit.aspx?List=%7B465AD054%2DD81B%2D495F%2DAA9F%2D6E44053A3B63%7D
b. 再使用a
步得到的文档库模板新建文档库,这样新建出来的文档库启用Scheduling时上面两列就会自己主动加入了
2. 启用Scheduling后从Site column
中加入这两列PublishingExpirationDate(Scheduling End Date)
和 PublishingStartDate(Scheduling Start Date)
用PowerShell的话能够这样写:
Param( [parameter(Mandatory=$true)] [alias("web")] $webUrl, [parameter(Mandatory=$true)] [alias("DocumentLib")] $documentLibTitle ) $webSite = get-SPWeb $webUrl $documentLib = $webSite.Lists[$documentLibTitle] Write-host "Enable content approval" $documentLib.EnableModeration = $true Write-host "Enable minor version" $documentLib.EnableMinorVersions = $true $documentLib.DraftVersionVisibility = 2; # Only users who can approve items (and the author of the item), lib.DraftVersionVisibility = DraftVisibilityType.Approver $documentLib.Update() [Microsoft.SharePoint.Publishing.PublishingWeb]::EnableScheduling($documentLib); # Check if the list have the two column "Scheduling Start Date" and "Scheduling End Date" ## refresh the document library $documentLib = $webSite.Lists[$documentLibTitle] if(-Not($documentLib.Fields.ContainsFieldWithStaticName("PublishingStartDate"))) { Write-host "Adding column Scheduling Start Date" $listField=$webSite.Site.RootWeb.Fields["Scheduling Start Date"] $documentLib.Fields.AddFieldAsXml($listField.SchemaXml, $true, 4) # SPAddFieldOptions.AddToAllContentTypes = 4 $documentLib.Update() } if(-Not($documentLib.Fields.ContainsFieldWithStaticName("PublishingExpirationDate"))) { Write-host "Adding column Scheduling Start Date" $listField=$webSite.Site.RootWeb.Fields["Scheduling End Date"] $documentLib.Fields.AddFieldAsXml($listField.SchemaXml, $true, 4) $documentLib.Update() } $webSite.Dispose(); Write-host "Done!" -foregroundcolor green
相关文章推荐
- 在SharePoint 2013 中使用文档库Scheduling (计划发布功能)
- sharepoint 2013 部署步骤“添加解决方案”中出现错误: 已在此服务器场中安装 ID 为{guid}的功能。请使用强制属性显式地重新安装此功能。
- sharepoint 2013 部署解决方案 此功能已在此服务器场中安装 ID 为 guid 的功能。请使用强制属性显式地重新安装
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第14章节--使用Office Services开发应用程序 Excel Services中新功能
- SharePoint 2013 使用 RBS 功能将二进制大型对象 BLOB 存储在内容数据库外部。
- 使用SharePoint 2013 社区功能 可以分钟搭建 微博和BBS网站
- SharePoint 2013 使用 RBS 功能将二进制大型对象 BLOB 存储在内容数据库外部。
- SharePoint 2010 使用”日历重叠“功能(转)
- 使用SharePoint 2010 导入电子表格功能的错误处理
- 使用SharePoint 2010 导入电子表格功能的错误处理
- Project2013新功能---在Project中使用Lync来沟通
- SharePoint 2013使用Exchange2013 配置传入电子邮件
- SharePoint 2013使用Exchange2013 配置传入电子邮件
- sharepoint使用Form认证文档库功能不能正常使用的解决方法
- SharePoint 2013 & Office 365 新版本功能列表
- SharePoint 2013 使用嵌入JavaScript方式实现一个垂直滚动列表
- SharePoint 2013 使用InfoPath 提交数据到InfoPath form Library
- sharepoint 2010 如何使用自带隐藏顶部导航,左侧导航功能
- SharePoint 2013使用Exchange2013 配置传入电子邮件
- SharePoint 2010如何才能使用LINQ的功能