Logo Home   Downloads   Up to Bluedog Limited
Meta-data and unghosting
Posted on 5/14/2005 1:11 PM by Maurice Prather

Ghosting and unghosting is quite the popular topic ... Hopefully, today’s post will answer the last remaining questions... J

Ghosted pages or ghosted sites?

For starters, let’s all get on the same page – the terms “ghosted” and “unghosted” refer to the state of a Web Part Page

All too many times, I see folks using the expression “I have an unghosted site”.   

 BZZZZZ!!  Wrong answer. 

There is no such thing as an “unghosted site”.  Keep in mind that ghosted/unghosted refer to a page state.  You may have a site with unghosted pages, but the site as a whole can never be unghosted. 

Meta-data and unghosting

In my original post from June 2004 that described ghosted pages, I mentioned that “modification of custom document library fields” will force a page to transition over to an unghosted state. To be fair, the word “custom” could be eliminated from that statement because every column is effectively a custom column. 

This is a commonly overlooked fact.  Why? If you’re not totally familiar with how SharePoint handles documents, the concept just doesn’t come naturally.  Thus, the following question is commonly seen...

Q: Why does changing the meta-data associated with a Web Part Page in a document library cause the page to be unghosted?

There are two reasons!

  • Property promotion and demotion
  • Performance

If you’re not familiar with property promotion, I strongly encourage you to read Daniel McPherson’s post “SharePoint Document Libraries and Property Promotion”.  Whenever you change the meta-data associated with a Web Part Page, SharePoint will attempt to demote the properties into your aspx page.  To ensure your page will always have the correct meta-data that is represented in your document library, the data must be persisted in the document itself.  This obviously requires a page to contain unique data and therefore unghosts the page.  (Note: this is very reason why changing the Title via FrontPage 2003 will unghost your page as discussed in my post from May 11th).

The secondary reason is related to performance optimizations designed to improve page rendering times.  When you save a custom page, the web part framework will parse the page to determine the number of web part zones, their identification, and their properties.  This data is cached as part of the overall meta-data and is used to quickly match web parts to their parent zones.

-Maurice

References:
Ghosted and unghosted pages - part 1 of 2
Ghosted and unghosted pages - part 2 of 2
Untruths about ghosts

Don't kill the messenger ...

re: Meta-data and unghosting
Good article Maurice, thank you!
 
Bob Mixon
 
 
Bob Mixon @ 5/14/2005 2:26 PM
re: Meta-data and unghosting
It's odd that, in the referred blog, no mention is made as to how to get the "Test" custom field to appear in the document library in SharePoint. I tried to add a column to a document library and I named it "Test". Then I followed the steps outlined in the blog. When I saved my document, I did not see any "SharePoint WSS File Properties dialog box". What am I doing wrong here?
Odd thing.... @ 12/7/2007 11:02 AM
Microsoft Certified Master
Are you looking for a team of SharePoint experts?
ShareSquared can help ... drop us a note.
 
 
ShareSquared, Inc.
MVP Logo
Keyword Search
 
View by category
 

Disclaimer:
The contents of this site represent thoughts and opinions of the authors , not those of anyone else - such as past, present and future employers.  This a forum of the exchange of ideas centered on SharePoint technologies.  It is not a support channel.  :)

Copyright © 2004-2009 BluedogLimited.com. All rights reserved.