There are metadata properties on each page list item that specify the content type called "PublishingPageLayout" that you should be able to interrogate to get the page layout. It's usually formatted like this: "~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx, My Page Layout Name" So the first part being the relative path to the page layout, and the second part being the name of the layout (although that's less import as it can really be anything, especially if it was provisioned in a feature and the developer set the text to something else). You could iterate over all your pages and build a list of page layouts in use and then compare that to the list of available page layouts and go from there.
Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: @BrianFarnhill | blog: blog.brianfarnhill.com | xbox: Modern Bogan Date: Thu, 1 Mar 2012 23:35:35 +0530 Subject: How to find Unused Page Layouts In Public facing site. From: [email protected] To: [email protected] Hi all,I am migrating MOSS 2007 32-bit to MOSS 2007 64-bit.There are many page layouts in my project which are not in use, Is the any way to find all page layouts that is not used by any site.I tried using Object model, I was unable to retrieve them, Can any one help me! Thanks in advance.. -- Regards, ☛ VIJAYKUMAR _______________________________________________ ozmoss mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
_______________________________________________ ozmoss mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
