Class PageLayoutAnalyser
Inherited Members
Namespace: PnP.Framework.Modernization.Publishing
Assembly: PnP.Framework.dll
Syntax
public class PageLayoutAnalyser : BaseTransform
Constructors
PageLayoutAnalyser(ClientContext, IList<ILogObserver>)
Analyse Page Layouts class constructor
Declaration
public PageLayoutAnalyser(ClientContext sourceContext, IList<ILogObserver> logObservers = null)
Parameters
Client This should be the context of the source web |
IList<ILog List of log observers |
Methods
AnalyseAll(Boolean)
Main entry point into the class to analyse the page layouts
Declaration
public void AnalyseAll(bool skipOOBPageLayouts = false)
Parameters
System. Skip OOB page layouts |
AnalysePageLayout(ListItem)
Analyses a single page layout from a provided file
Declaration
public PageLayout AnalysePageLayout(ListItem pageLayoutItem)
Parameters
List Page layout list item |
Returns
AnalysePageLayoutFromPublishingPage(ListItem)
Determine the page layout from a publishing page
Declaration
public PageLayout AnalysePageLayoutFromPublishingPage(ListItem publishingPage)
Parameters
List Publishing page to analyze the page layout for |
Returns
GenerateMappingFile()
Generate the mapping file to output from the analysis
Declaration
public string GenerateMappingFile()
Returns
System. Mapping file fully qualified path |
GenerateMappingFile(String)
Generate the mapping file to output from the analysis
Declaration
public string GenerateMappingFile(string folder)
Parameters
System. Folder to generate the file in |
Returns
System. Mapping file fully qualified path |
GenerateMappingFile(String, String)
Generate the mapping file to output from the analysis
Declaration
public string GenerateMappingFile(string folder, string fileName)
Parameters
System. Folder to generate the file in |
System. name of the mapping file |
Returns
System. Mapping file fully qualified path |