Sharepoint用户任务默认只显示当前站点下的任务,可有时需要显示网站集下所有站点任务,解决方法如下:
将以下代码保存为“用户任务.dwp”文件,上传添加Web部件即可。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <?xml version="1.0" encoding="utf-8"?> <WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2"> <Title>用户任务</Title> <FrameType>Default</FrameType> <Description>显示分配给当前用户的任务。</Description> <IsIncluded>true</IsIncluded> <ZoneID>wpz</ZoneID> <PartOrder>10</PartOrder> <FrameState>Normal</FrameState> <Height /> <Width /> <AllowRemove>true</AllowRemove> <AllowZoneChange>true</AllowZoneChange> <AllowMinimize>true</AllowMinimize> <AllowConnect>true</AllowConnect> <AllowEdit>true</AllowEdit> <AllowHide>true</AllowHide> <IsVisible>true</IsVisible> <DetailLink /> <HelpLink /> <HelpMode>Modeless</HelpMode> <Dir>Default</Dir> <PartImageSmall /> <MissingAssembly>无法导入此 Web 部件。</MissingAssembly> <PartImageLarge>/_layouts/15/images/msustask.gif</PartImageLarge> <IsIncludedFilter /> <Assembly>Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly> <TypeName>Microsoft.SharePoint.WebPartPages.UserTasksWebPart</TypeName> <QuerySiteCollection xmlns="http://schemas.microsoft.com/WebPart/v2/Aggregation">true</QuerySiteCollection> <MaxItemsShown xmlns="http://schemas.microsoft.com/WebPart/v2/Aggregation">50</MaxItemsShown> </WebPart> |