Wednesday, June 29, 2011

Finding Page Layouts and Master Page usages


Recently, I messed up my page layout by manually editing the layout directly from the gallery. It started adding multiple web part instances all of a sudden when a page created with the page layout. So I decided to delete the layout and re-deploy the solution again.

I was getting the below error when I was trying to delete that particular page layout from my site collection's Master page and page layouts collection. (http://spsiteurl/_catalogs/masterpage/Forms/AllItems.aspx)

And I have deleted all the instances where ever the layout was being used. I was sure I was missing some place but how do I find that out??




After a long search I found a place where to get all the usages of page layouts. I went to  the Site Content and Structure by selecting "Manage Content and Structure" from the "Site Actions" menu. And navigated to the "Master Page Gallery" list in the root web.



We do have an option in the menu on the right side pane to show the related resources "Show Related Resources" to show/hide the related resources. Turning on this option and selecting the particular page layout or master page would show you the resources using the particular layout/master page.

A preview ...


Isn't this handy & cool??

No comments:

Post a Comment