Text Analytics SummitPolySpot: Agile Enterprise Search Infrastructure

Straighten Up Your SharePoint Web Parts Tables

June 9, 2011

Removing Web Parts tables in SharePoint 2010 provides some quite useful information for SharePoint licensees.

Web parts are add-on server controls that make it easier to easier to edit web pages from a browser.  In SharePoint they can make things more complicated than necessary.

The article explains how to remove Web parts from SharePoint for cleaner HTML.  If you’ve ever used the Web Zone Control Adaptor MOSS 2007, you are already good to go to remove web parts.  If not,  the article explains how MOSS 2007 causes the Web Part Zone to omit rendering tables around the Web Parts. The article says:

The above fix still applies in SharePoint 2010. In SharePoint 2010 Web Part Zones still wrap Web Parts into nested tables. While this behavior allows you to have your solutions backwards compatible with previous versions of SharePoint, it is still as terrible as it was for custom branding and accessibility. Using a Web Part Zone Control Adapter is still a way to get rid of those tables.

When tables are placed in Web Part content the only way to remove them is to use post processing and remove them once they are rendered as HTML.  Web Parts are good tools, why add them when they do not enhance a web page?  Remove them, recycle them, and create better code.  To make your SharePoint experience even easier, consider using SurfRay technologies.

Torben Ellert, June 9, 2011

SurfRay

Comments

Comments are closed.

  •  Only search links from this page: