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

I removed web part zone from page layout and deployed it using FEATURE. I see the web parts and zone removed from all existing pages using that page layout. However, I see following warning first time I open the page:

"One or more Web Parts on this page references a zone that doesn't exist. It has been moved to the Closed Web Parts Gallery."

This happens for first user only after that the warning does not display.

Is there any way I can get rid of this alert message so that when I deploy the change in production, customers do not see this message?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I'd have your feature activation code trawl the website for pages that use that page layout and remove the web parts from the zones.

share|improve this answer
    
otherwise sharepoint will remove it after/before showing alert message. Is it? –  Ashish Patel Dec 9 '11 at 22:48
    
Yes. Though remember it won't remove it, it'll add it to the 'Closed' web parts folder in the 'Add Web Part' area in the ribbon. –  James Love Dec 9 '11 at 23:09
    
Got it.. I would prefer a throw away console app for this one time operation though... –  Ashish Patel Dec 10 '11 at 15:23
    
Yeah, same here. It's probably highly doable in PowerShell too, but I always reach for the Console app template in CKS xD –  James Love Dec 10 '11 at 15:34

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.