Class PageLayoutManager
Class used to manage SharePoint Publishing page layouts
Inherited Members
Namespace: PnP.Framework.Modernization.Publishing
Assembly: PnP.Framework.dll
Syntax
public class PageLayoutManager : BaseTransform
Constructors
PageLayoutManager(IList<ILogObserver>)
Constructs the page layout manager class
Declaration
public PageLayoutManager(IList<ILogObserver> logObservers = null)
Parameters
|
IList<ILogObserver>
logObservers
Currently in use log observers |
Methods
GetPageLayoutMappingModel(PublishingPageTransformation, ListItem)
Load to PageLayout that will be used to transform the given page
Declaration
public PageLayout GetPageLayoutMappingModel(PublishingPageTransformation publishingPageTransformation, ListItem page)
Parameters
|
PublishingPageTransformation
publishingPageTransformation
Publishing page transformation data to get the correct page layout mapping from |
|
ListItem
page
Page for which we're looking for a mapping |
Returns
|
PageLayout
The page layout mapping that will be used for the passed page |
LoadPageLayoutMappingFile(String)
Loads a page layout mapping file
Declaration
public PublishingPageTransformation LoadPageLayoutMappingFile(string pageLayoutMappingFile)
Parameters
|
System.String
pageLayoutMappingFile
Path and name of the page mapping file |
Returns
|
PublishingPageTransformation
A PublishingPageTransformation instance. |