Wondered if it's possible to iterate through the pages held in the pages library and determine the page layout being used by each page? any c# code examples appreciated.
Many thanks in advance
|
Wondered if it's possible to iterate through the pages held in the pages library and determine the page layout being used by each page? any c# code examples appreciated. Many thanks in advance |
|||
|
|
|
I believe you need to use For example:
|
|||||
|
|
Use SPSiteDataQuery to get all the pages or filter them w.r.t their associated Content Types. See example below
|
|||
|
|