Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can I resore ghosting of a page back if I accidentally unghosted it?

Will its deleting and recreating restore ghosting and remove copy of changed page from database?

Update:
Searched for quite a time om the internet and in SPD 2010 for "Reset to Site Definition" option.

It is not in the editing (or editor) of a page ASPX (what could have been expected where I've done changes) but on ribbon of settings page of a view page in SPD (Sharepoint Designer) 2010, under Page tab, immediately upon entering by clicking the entry in the list of "Site Pages".

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Assuming you're using SharePoint Designer, just right-click on the file and click "Reset to Site Definition" this will remove the ghosting (now called "Customizing" in 2010), remove that artifact from the content DB, and revert back to the file system version.

share|improve this answer
add comment

If you are dealing with the Publishing Site, you would need to take a different road, simpler (in my perspective) - you need to re-attach the Page to the Page Layout and the customization will be discarded.

To reset simple Web Part pages you follow this guide http://office.microsoft.com/en-us/sharepoint-designer-help/reset-a-customized-page-to-the-site-definition-HA010174145.aspx#BM4 or via Powershell here http://blog.brainlitter.com/2012/02/19/how-to-reset-all-sp-2010-site-pages-to-default-definitions-with-powershell/

share|improve this answer
    
Thanks, I wanted to ask another subquestion - whether deleting and (re)creating a page anew would delete the old one from content database (for files that are usually being ghosted) –  Gennady Vanin Novosibirsk May 28 '12 at 2:23
    
Is always making a copy of the old one renaming it, so no. –  C. Marius - MVP May 28 '12 at 16:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.