Logo SharePoint Thoughts   Downloads   About   Up to Bluedog Limited
Ghosted and unghosted pages - part 2 of 2
Posted on 6/8/2004 2:18 PM by Maurice Prather

Part two of the discussion on ghosted and unghosted pages...

How can you tell if a page is ghosted or unghosted? Quite simply – you can’t.

There is no way to determine the state of your page.  Unfortunately, this functionality simply didn’t make its way into the product.  In an ideal world, you would never need to know if a page is ghosted or not.  However, we don’t live in an ideal world. 

Is it possible to “reset” an unghosted page to its original ghosted state?  No.

This ties into the previous answer.  Straight out of the box, there is no way to return a page to its original ghosted state. 

Help…  I need to reset a page!!  Surely there are options?!

Check out the GhostHunter Web Part which is included in the Web Part Toolkit.  The GhostHunter Web Part was specifically designed to address the limitations of WSS with respect to ghosted and unghosted pages.

Happy ghost hunting!! :)

===
Series articles:
Post 1/2 - http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=4
Post 2/2 - you're reading it!

Performance Factor-Ghosted & Un-Ghosted
Which one is better when performance is taken into consideration-Ghosted(Compiled) of Un-Ghosted(Interpreted)?
Raghu Iyer @ 12/22/2004 4:05 AM
re: Ghosted and unghosted pages - part 2 of 2
It really depends on the complexity of your page.  On a very small and simplistic page, the difference would be neglible.  On larger and more complex pages, ghosted pages have a definite advantage.
 
You can easily determine what best suits your needs by running your own tests...
  1. Create a web part page, add your web parts, then run perf tests to see how many pages per minute can be rendered. This will give you a feel for your page's perf in a ghosted state.
  2. Then unghost the page and run the same test. 
  3. Compare the results.
 
Maurice Prather @ 1/4/2005 1:02 PM
resetting ghosted to unghosted
according to the above, this cannot be done.
 
however,
 
1) cant i do this by resetting the CONTENT column to NULL in the DOCS table?
 
If yes,
2) how do i find the page i am looking for in the DOCS table?
 
thx
MJ @ 1/28/2005 3:39 PM
TITLE TYPO
my previous post should say unghosted to ghosted
MJ @ 1/28/2005 3:41 PM
re: Ghosted and unghosted pages - part 2 of 2
Use the GhostHunter web part (as mentioned above)... it is the best option available.
Maurice Prather @ 1/28/2005 4:07 PM
re: Ghosted and unghosted pages - part 2 of 2
The other concern to that needs noting is when updates applied to SharePoint passing through to the unghosted pages.
Sean Allen @ 8/15/2005 8:35 AM
re: Ghosted and unghosted pages - part 2 of 2
Hello, quick question. Does anybody know of a way to access and parse through a .properties file residing on the server from the SharePoint default.aspx page? Thank you in advance.
Eli @ 8/17/2005 10:08 AM
re: Ghosted and unghosted pages - part 2 of 2
To change the default.aspx page from being unghosted to ghosted, can i just set the Content to null and set the setuppath to an appropriate value? I know this question was asked before, but did not see any answers to it. How excatly does the the GhostHunter webpart achieve this? :)
Anonymous User @ 9/7/2005 2:57 PM
re: Ghosted and unghosted pages - part 2 of 2
Hey,
you only posted that "ghosted pages are those rows in the docs table which have null values for the Content column and a non-null value for the SetupPath column which points to a file on the file system itself." So how is it not possible to know which pages are ghosted and which are not?
Also,
What are the performance setbacks, are they negligible or considerable when the page is unghosted?
 
Amardeep Dabass @ 9/29/2005 10:36 PM
Please help....
Hi....
I would really appreciate some help.... Ghosting and unghosting has always been a sort of dilema for me. I just want to clarify..... is a page only unghosted when using frontpage... How about if I edit the default.aspx (Homepage) in Notedpad does this unghost the page as well?
Also, when I add new columns to a list does it become unghosted? When I modify a page only through the browser and add like 10 new webparts does it become unghosted?
Would greatly appreciate your help.....
Thanks .....
Ryan @ 10/5/2005 1:01 AM
RE: Please help....
Ryan-
A page is unghosted any time you edit the actual page, whether in FrontPage, NotePad, DreamWeaver, or anything else capable of opening and saving a text file. Unghosted simply means that the page has changed from the default.aspx template which is stored in the file system. Dragging and dropping WebParts on the page does not change the underlying .aspx page. When the page is rendered, SharePoint in the background queries the database and pulls from the database the WebParts that have been assigned to each WebPart Zone on the page. The WebPart Zones are what is actually the content of the default.aspx page, and the content for each zone is loaded when the page is rendered.
As for Lists, a list is not ghosted or unghosted. There is no physical "List" like there is a physical "default.aspx". A list is simply stored in the content database.
Joel @ 10/5/2005 10:46 AM
re: Ghosted and unghosted pages - part 2 of 2
Ryan:
When you add columns to a document library, pages will not become unghosted.  However, if you update a column value for a particular web part page, your page will become unghosted.
 
The following post should shed some light...
Amardeep:
Performance was mentioned in the comment dated Jan. 4, 2005.  Unghosted will be a tad slower due to the nature of a system, but it mostly depends on the complexity of your page.
 
-Maurice
Maurice Prather @ 10/20/2005 10:45 AM
reghosting manually
Is it possible to reghost a page by setting the Content column to null? What exactly does GhostHunter do when it reghosts a page?
Joe @ 2/1/2006 8:57 AM
re: Ghosted and unghosted pages - part 2 of 2
Excellent article !  Good content and easy to read, thanks.
Byung @ 11/14/2008 9:39 AM
re: Ghosted and unghosted pages - part 2 of 2
I never found answer to this question :
 Can we convert an unghosted page to ghosted by making its content NULL and giving setuppath a default value??
 
Please answer this...........Thanks in advance..
Aspirer @ 3/26/2009 9:00 AM
Re-Ghosting a Page
If you are using v3, use the API to reset your page to its original ghosted form. 
Please do NOT attempt to reset pages on your own via direct database actions.  This is not supported, nor does the GHWP offer or imply such supportability.  More importantly, the GHWP is for v2 ONLY.  Chances are you have long stopped using v2.
Maurice Prather @ 4/23/2009 11:31 AM
RSS feed
Microsoft Certified Master
MVP Logo
Follow me on Twitter!
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-2010 Maurice Prather, Inc. All rights reserved.