Objective
Before doing the portal, often to import and export WebPart, very frequent, and then need to export one by one, and then import, very cumbersome; in the time of leisure, consider whether it can be automated, the function is written as a tool, you can easily manage WebPart.
The main function of the tool is to add and remove WebPart for the page, and to import all the WebPart on the exported page for the modified page. However, because of the time rush, did not export WebPart WebPartZone, but manual drag is very convenient, hehe.
Below, go to the demonstration stage of the WebPart management tool, right, forget to say, if there is a need for similar features of friends, you can go to GitHub download tools, and welcome suggestions, in time convenient, will also update the tool. If you find the tool a bit helpful, please feel free to praise this article, and also welcome to share on GitHub.
1. Open a SharePoint page, such as:
2. Open the SharePoint webpart Manager Tool, enter the site URL, Web URL, page address, and click Load to read all the WebPart on the site, such as:
3, select a WebPart, click on the Add to page, you can add to the page, such as:
4. Add a WebPart page through the SharePoint WebPart Manager tool, such as:
5. Switch to the Delete tab and click Load to read the WebPart on the page, such as:
6. Tick the WebPart (the title of the WebPart is displayed) and click Delete to delete the WebPart, such as:
7, switch to the Import tab, select the path, click Import, you can import the folder directory of WebPart to the page, such as:
8, after the introduction of the page, such as:
9. Similarly, you can export webpart to a folder, such as:
Conclusion
Forget to say, the code is used in the server-side object model, you need to operate on the SharePoint server, do not use on the client, hehe. The imperfect place also invites everybody to raise the opinion.
GitHub Address
Https://github.com/linyus/SPWebPartManagerTool
SharePoint Administration tools for WebPart sharing [open source]