I need to rename a bunch of Page layouts and Master Pages without having to re-set the Page Layout to each content page that is using those layouts.
I have two page layouts - 'Home.aspx' and 'Home1.aspx' - and I want to rename them to something along the lines of 'project1_Home.aspx' and 'project2_Home.aspx'
I can do this fine in Sharepoint Designer but when I try to access a content page using one of the 'Home.aspx' or 'Home1.aspx' layouts I get a "The resource cannot be found." error page. The renaming hasn't taken affect.
I then have to manually go into the Page Settings an re-set the pages in question to access the project1_Home.aspx or project2_Home.aspx layouts.
Can I achieve this programmatically?
I have dozens of page layouts I want to rename (and perhaps move to subfolders) and hundreds of content pages use those layouts so it would take forever manually ! :)