Logo SharePoint Thoughts   Downloads   About   Up to Bluedog Limited
Don't kill the messenger ...
Posted on 8/31/2004 10:52 AM by Maurice Prather
Generally, I don’t like to jump into arguments but every once in awhile you run across one of those conversations which begs for more information...
 
Earlier this morning I was reading Andrew Connell’s post about his experience with ghosted and unghosted  pages (see link below).  At first, I thought “a GhostHunter success story - very cool”.  Then I followed the trace of discussion links ... back to Dustin Miller and Barry Kouda’s articles.
 
Interesting conversations... 
 
Overall, I get the impression that people are hammering on the messenger instead of focusing on the technology. 
 
FrontPage 2003 is a premier editing tool.  It interacts with SharePoint and therefore the behavior of ghosting and unghosting is not unique to FrontPage. 
 
I strongly recommend reading my previous post on ghosted/unghosted pages (see link below).  It's an authorative definition - it clearly outlines how SharePoint treats aspx pages.  If you read the definition first then read the articles, a few things come to mind...
  • Pages can be transitioned from a ghosted state to an unghosted state via several different paths. 
  • FrontPage is a tool.  At a very fundamental level it is nothing more than a glorified Notepad – open file, save file.  As such, any tool whether it is FrontPage, Notepad or a custom editor will experience the same ghosting/unghosting behavior.  The underlying technology doesn’t know or care about who is saving the file.  The technology recognizes the fact a file is being updated and makes the appropriate state changes. 
Don’t the kill the messenger because you don’t like the message.  FP is cool and does have its set of limitations, but ghosting and unghosting is not one of them.
 
References
Ghosted and unghosted pages - part 1 of 2
http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=4
 
 
GhostHunter (part of the Web Part Toolkit)

 
re: Don't kill the messenger ...
FrontPage is a tool.  At a very fundamental level it is nothing more than a glorified Notepad - open file, save file.  As such, any tool whether it is FrontPage, Notepad or a custom editor will experience the same ghosting/unghosting behavior.

This statement makes me feel quite ill. 
 
Have you PERSONALLY confirmed that it notepad infact does unghost your files?
Trevor Seguin @ 8/31/2004 12:31 PM
re: Don't kill the messenger ...
Yes - on a regular basis for the past 3 years. :)
 
The GhostHunter web part will confirm this for you as well.
 
You shouldn't feel ill, though.  The point of my post was to show that the editors do what they need to do - open and save.  SharePoint provides the api's that allow any editor to accomplish those tasks. 
 
For example, Notepad relies on webdav to retrieve the file and uses webdav to save the file.  FrontPage uses the WebPart Pages web service (webpartpages.asmx) to retrieve the file and uses the FP RPCs to save the file.
 
When it comes to aspx pages, SharePoint will appropriately transition a ghosted page to an unghosted state once a modification is made.
 
 
Maurice Prather @ 8/31/2004 2:03 PM
re: Don't kill the messenger ...
It's certainly true that other tools can affect ghosting.  But isn't the real point that Microsoft's tool which they promote as the premier Sharepoint editor  be more intelligent ? 
Kimo Hardy @ 9/10/2004 3:02 PM
re: Don't kill the messenger ...
No.  If anyone is going to be more intelligent, it has to be SharePoint  - the lowest common denominator in all situations is the core product.
Maurice Prather @ 9/12/2004 1:02 AM
re: Don't kill the messenger ...
I have a "please help me I am stuck" issue!!!
 
This isn't the place for it really... but I am sorry I couldn't figure out where else to put it.
 
I have done the success story listed in Connell's blog (and GhostHunter is great... I love it!) but I have run into a problem that I can't seem to find a solution for.
 
On my sites that have been 'reghosted' by using the GH web part, any changes to the ONET.xml file do not show in the newly reghosted sites.  Others sites in the same server farm that were never unghosted show the ONET.xml changes just fine, so I don't think it is anything I am doing wrong in the onet file (what I am doing is removing the site settings link).
 
Do you have any idea why onet.xml file changes are not showing in the reghosted sites? I have restarted IIS...
 
Any help would be dearly appreciated.
Heather @ 9/20/2004 8:32 PM
re: Don't kill the messenger ...
Thanks for the mention Maurice.  I couldn't agree more with your statement that it's the underlying technology and not FrontPage.  However, my biggest concern, which I blogged about (inspired by Barry Kouda's article "What you Don't Know About FP2003 Can Hurt You") is that users of FrontPage don't realize exactly the implications of what they are doing
 
Case in point: My company has been working with SharePoint for about 12 months now.  My group is now fairly seasoned in the capabilities & limitations of the product.  We've adopted policies that basically say "do everything you can to stay ghosted... if you need a custom look & feel that can't be accomplished via CSS & images, first method is to create a template just for you." Why?  Well, let's just say our company has gone through enough acquisitions where we've had to rebrand our stuff that we need to be forward looking.  We have built numerous sites for internal customers.  Then someone whose read about the product wants to open their site in FrontPage and make changes at will.

Possible?  Sure!  In fact they can do a TON on their own.  BUT, they don't know the implications of it.  It's one of those things that I strongly believe that Microsoft should REALLY hammer home.  Why is it that us bloggers are the only ones really pushing the "ghosting/unghosting" issue?  I didn't see an article on MSDN until I saw tons of ours.
 
So... what's my biggest issue: The seperation of the presentation & data.  We achive this by keeping the presentation in the site def's (templates) and the data in the database.  But when the presentation moves into the database (unghosted), we get into problems.  When you host sites for customers who require solid change management processes, this model (unghosted pages) causes problems... BIG problems.

I frankly don't understand how we just took a step back in merging the presentation & data.  Didn't we just start using code behind files, data grids, user controls, server controls... need I name more?  That was supposed to keep seperation easier... and it does... but SharePoint took a big step back. 
 
But it's not really possible (heard that from two MS people... one MVP, one consultant)!  Oh yeah?  See: Microsoft's Content Management Server... that's a near-PERFECT implementation of the seperation of data & presentation!  And it's two years old!  "But you have to develop all your own templates!"  Really?  Doesn't it seem more like "here are X site definition projects (templates) we've already provided for you... you can build your own".  "But SharePoint already does that"... yeah, kinda... but, still no seperation of presentation and data.
 
<breathe> I'm done... stepping off my soapbox <breathe>
Andrew Connell @ 9/21/2004 5:54 AM
re: Don't kill the messenger ...
Maurice-
 
I posted about my onet.xml problem on the newsgroup and I got this for a reply:
 
 
Wanted to see if you had any feedback based off what Mike was saying.
 
Thank you
Heather @ 9/21/2004 7:34 AM
re: Don't kill the messenger ...
Heather,
 
I haven't really had a chance to look into your problem, but I wanted to point out a couple of things...
  • The GhostHunter Web Part only resets a page.  It does not reset a site (there really is no concept of unghosting a site).
  • The nav bar is not considered a part of the page (in terms of where the information is stored).  The meta data for the nav bar is stored separately.  This explains why you may still see the same nav bar even after unghosted your page.
Hope this helps in the interim,
-Maurice
 
-------
Update 9/22:
There is no way to reset the navbar unless you manually do it yourself via FP2003.  Otherwise, the only way to "reset" is to recreate your site with the desired onet.xml changes in place before the site is created.

 
Maurice Prather @ 9/21/2004 12:26 PM
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.