SharePoint 2010 Chrome


I’m sure somebody, somewhere, leverages SharePoint Chrome for displaying the most beautiful and elegant titles on well-designed pages.  I, however, am not that person, and have never met that person.  The workflow I was accustomed to was:

  1. Add Web Part to page
  2. Edit Web Part
  3. Change Chome to None
  4. Save & Close Page
  5. Check In
  6. Publish
  7. Approve

That… sucks.  Even worse, unfortunately, it normally went more like:

  1. Add Web Part to page
  2. Save & Close Page
  3. Check In
  4. Publish
  5. Approve
  6. Notice Chrome
  7. Edit Page
  8. Edit Web Part
  9. Remove Chrome
  10. Save & Close Page
  11. Check In
  12. Publish
  13. Approve

Not the most efficient work flow, especially if you didn’t require any per-page custom configuration of your web part.  Scouring the internet, there are several solutions eluded to this problem, and most of them do not work.  Here, for your viewing pleasure, is the secret sauce.

First, open your web part’s .webpart file:

Image

Second, add the following line to the properties list:

<property name=”ChromeType” type=”chrometype”>None</property>

Image

After you give the web part a nice title and a good description (you do fill that out, right?  RIGHT?!) and publish it, your new, slicker workflow can be minified to:

  1. Add Web Part to page
  2. Publish
  3. Approve

Yes… artistic license was taken to skip Save & Close and Check In… but on a normal publishing site Publish will do those for you, and it makes my solution look that much better :-).

Happy Coding!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s