How to Replace All Occurrences of SharePoint Web Part

July 13, 2012

SharePoint 2010 Web Parts are a modular unit of information that consists of a title bar, a frame, and content. They are the basic building blocks of a Web Part page. In “Replace SharePoint 2010 Web Parts by Type,” the author provides a cmdlet that allows you to replace all occurrences of one web part type with another type.

The author explains his PowerShell solution:

The Replace-SPWebPartType cmdlet accepts an URL to a web part page (or an instance of an SPFile object) and a string or Type object representing the type of web part to replace and what to replace it with; you can further restrict what web parts are updated by providing a web part title to filter on and you can pass in additional properties to set via a Hashtable object (closed web parts are ignored).

This tool may come in handy in a number of different situations, such as discovering a buggy web part. Let’s say you deploy a custom web part and remove the out of the box web part from the gallery, but then you need to replace the existing instances that are deployed on pages throughout your farm. The cmdlet and full help are provided in the article. You may want to bookmark the solution for an easy fix in those occasional Web part replacement occurrences. One way to avoid some Web part replacement needs is by employing a reliable third party solution. To maximize your SharePoint investments beyond implementation, consider Fabasoft Mindbreeze. Part of the full suite of solutions is the Fabasoft Folio Connector, which provides uniform, reliable management of your digital content.

With on-premise and Cloud information pairing capabilities, Mindbreeze provides a comprehensive and enterprise-grade solution that adds rich value to your business knowledge. Read more at Mindbreeze, where they seem to have the benefits of a proper installation down pat.

Philip West, July 13, 2012

Sponsored by Pandia.com

Comments

Comments are closed.