diff --git a/api/PnP.Core.Model.SharePoint.IPage.html b/api/PnP.Core.Model.SharePoint.IPage.html index 4cfa6f07fa..e5901a5c86 100644 --- a/api/PnP.Core.Model.SharePoint.IPage.html +++ b/api/PnP.Core.Model.SharePoint.IPage.html @@ -1634,7 +1634,7 @@
Parameters
- + @@ -1982,7 +1982,7 @@
Parameters
- + @@ -2026,7 +2026,7 @@
Returns
- + @@ -2070,7 +2070,7 @@
Returns
- + @@ -2126,7 +2126,7 @@
Returns
- + @@ -2182,7 +2182,7 @@
Returns
- + @@ -2217,7 +2217,7 @@
Declaration
- + @@ -2273,7 +2273,7 @@
Returns
- + @@ -2308,7 +2308,7 @@
Declaration
- + @@ -2352,7 +2352,7 @@
Returns
- + @@ -2387,7 +2387,7 @@
Declaration
- + @@ -2431,7 +2431,7 @@
Returns
- + @@ -2466,7 +2466,7 @@
Declaration
- + @@ -2510,7 +2510,7 @@
Returns
- + @@ -2545,7 +2545,7 @@
Declaration
- + @@ -2589,7 +2589,7 @@
Returns
- + @@ -2644,7 +2644,7 @@
Returns
- + @@ -2699,7 +2699,7 @@
Returns
- + @@ -2763,7 +2763,7 @@
Returns
- + @@ -2827,7 +2827,7 @@
Returns
- + @@ -2899,7 +2899,7 @@
Returns
- + @@ -2971,7 +2971,7 @@
Returns
- + @@ -3015,7 +3015,7 @@
Returns
- + @@ -3059,7 +3059,7 @@
Returns
- + @@ -3115,7 +3115,7 @@
Returns
- + @@ -3171,7 +3171,7 @@
Returns
- + @@ -3216,7 +3216,7 @@
Returns
- + @@ -3261,7 +3261,7 @@
Returns
- + @@ -3305,7 +3305,7 @@
Returns
- + @@ -3349,7 +3349,7 @@
Returns
- + @@ -3405,7 +3405,7 @@
Returns
- + @@ -3461,7 +3461,7 @@
Returns
- + @@ -3496,7 +3496,7 @@
Declaration
- + @@ -3540,7 +3540,7 @@
Returns
- + @@ -3596,7 +3596,7 @@
Returns
- + @@ -3652,7 +3652,7 @@
Returns
- + @@ -3687,7 +3687,7 @@
Declaration
- + @@ -3731,7 +3731,7 @@
Returns
- + @@ -3766,7 +3766,7 @@
Declaration
- + @@ -3810,7 +3810,7 @@
Returns
- + @@ -3856,7 +3856,7 @@
Parameters
- + @@ -3946,7 +3946,7 @@
Declaration
- + @@ -3981,7 +3981,7 @@
Declaration
- + @@ -4025,7 +4025,7 @@
Returns
- + @@ -4081,7 +4081,7 @@
Returns
- + @@ -4137,7 +4137,7 @@
Returns
- + @@ -4193,7 +4193,7 @@
Returns
- + @@ -4249,7 +4249,7 @@
Returns
- + @@ -4295,7 +4295,7 @@
Parameters
- + @@ -4440,6 +4440,41 @@
Declaration
+ + + + + + + + + + + + +

SetPageTitleWebPartPageHeader()

+ +
+

Sets page header back to the default for PageTilte WebPart (Message ID: MC791596 / Roadmap ID: 386904). The PageTitle WebPart has to be added into a first OneColumnFullWith Section separate.

+
+
+
Declaration
+ +
+
void SetPageTitleWebPartPageHeader()
+
+ + + + + + + + + + + +
@@ -4447,7 +4482,7 @@
Declaration
- + @@ -4492,7 +4527,7 @@
Returns
- + @@ -4548,7 +4583,7 @@
Returns
- + @@ -4593,7 +4628,7 @@
Returns
- + @@ -4649,7 +4684,7 @@
Returns
- + @@ -4684,7 +4719,7 @@
Declaration
- + @@ -4728,7 +4763,7 @@
Returns
- + diff --git a/api/PnP.Core.Model.SharePoint.PageHeaderType.html b/api/PnP.Core.Model.SharePoint.PageHeaderType.html index af5aed8b1a..51d04edee5 100644 --- a/api/PnP.Core.Model.SharePoint.PageHeaderType.html +++ b/api/PnP.Core.Model.SharePoint.PageHeaderType.html @@ -120,6 +120,12 @@

The page does not have a header

+

+ +

PageTitleWebPart

+ +
+

All Headersettings are in the PageTitle WebPart. PageTitle-WP in first section as OneColumnFullWith (Message ID: MC791596 / Roadmap ID: 386904)

diff --git a/index.json b/index.json index 42e71dfd84..41815ff14a 100644 --- a/index.json +++ b/index.json @@ -2067,7 +2067,7 @@ "api/PnP.Core.Model.SharePoint.IPage.html": { "href": "api/PnP.Core.Model.SharePoint.IPage.html", "title": "Interface IPage | PnP Core SDK", - "keywords": "Interface IPage A modern SharePoint Page Namespace : PnP.Core.Model.SharePoint Assembly : PnP.Core.dll Syntax public interface IPage Properties Controls List of control on this page Declaration List Controls { get; } Property Value PnP.Core.Model.SharePoint.List < ICanvasControl > DefaultSection The default section of the client side page Declaration ICanvasSection DefaultSection { get; } Property Value ICanvasSection EditorType Returns the editor that was used to create/update this page Declaration EditorType EditorType { get; } Property Value EditorType EntityId Entity id field for topic pages Declaration string EntityId { get; set; } Property Value System.String EntityRelations Entity relations field for topic pages Declaration string EntityRelations { get; set; } Property Value System.String EntityType Entity type field for topic pages Declaration string EntityType { get; set; } Property Value System.String Folder Folder the page lives in (available after saving the page) Declaration string Folder { get; } Property Value System.String HeaderControls List of controls on this page's header Declaration List HeaderControls { get; } Property Value PnP.Core.Model.SharePoint.List < ICanvasControl > KeepDefaultWebParts When a page of type Home is created you can opt to only keep the default client side web parts by setting this to true. This also is a way to reset your home page back the the stock one. Declaration bool KeepDefaultWebParts { get; set; } Property Value System.Boolean LayoutType Layout type of the client side page Declaration PageLayoutType LayoutType { get; set; } Property Value PageLayoutType Name The name of this page (available after saving the page) Declaration string Name { get; } Property Value System.String PageHeader Returns the page header for this page Declaration IPageHeader PageHeader { get; } Property Value IPageHeader PageId ID value of the page (only available when the page was saved) Declaration int? PageId { get; } Property Value System.Nullable < System.Int32 > PageListItem ListItem linked to this page Declaration IListItem PageListItem { get; } Property Value IListItem PagesLibrary Pages library Declaration IList PagesLibrary { get; } Property Value IList PageTitle Title of the client side page Declaration string PageTitle { get; set; } Property Value System.String PnPContext PnPContext to work with Declaration PnPContext PnPContext { get; } Property Value PnPContext RepostDescription Description of the repost page Declaration string RepostDescription { get; set; } Property Value System.String RepostSourceItemId Id of the SharePoint IListItem connected to the page being reposted Declaration Guid RepostSourceItemId { get; set; } Property Value Guid RepostSourceListId Id of the SharePoint IList containting the page being reposted Declaration Guid RepostSourceListId { get; set; } Property Value Guid RepostSourceSiteId Id of the SharePoint ISite containting the page being reposted Declaration Guid RepostSourceSiteId { get; set; } Property Value Guid RepostSourceUrl Url being reposted using the repost page Declaration string RepostSourceUrl { get; set; } Property Value System.String RepostSourceWebId Id of the SharePoint IWeb containting the page being reposted Declaration Guid RepostSourceWebId { get; set; } Property Value Guid ScheduledPublishDate Returns the scheduled publish data of a page (only if publish was scheduled) Declaration DateTime? ScheduledPublishDate { get; } Property Value System.Nullable < DateTime > Sections List of sections on this page Declaration List Sections { get; } Property Value PnP.Core.Model.SharePoint.List < ICanvasSection > SpaceContent Space content field (JSON) for spaces pages Declaration string SpaceContent { get; set; } Property Value System.String ThumbnailUrl Thumbnail url for the page Declaration string ThumbnailUrl { get; set; } Property Value System.String Methods AddControl(ICanvasControl) Adds a new control to your client side page using the default ICanvasSection Declaration void AddControl(ICanvasControl control) Parameters ICanvasControl control ICanvasControl to add AddControl(ICanvasControl, ICanvasColumn) Adds a new control to your client side page in the given section Declaration void AddControl(ICanvasControl control, ICanvasColumn column) Parameters ICanvasControl control ICanvasControl to add ICanvasColumn column ICanvasColumn that will hold the control AddControl(ICanvasControl, ICanvasColumn, Int32) Adds a new control to your client side page in the given section with a given order Declaration void AddControl(ICanvasControl control, ICanvasColumn column, int order) Parameters ICanvasControl control ICanvasControl to add ICanvasColumn column ICanvasColumn that will hold the control System.Int32 order Order of the control in the given section AddControl(ICanvasControl, ICanvasSection) Adds a new control to your client side page in the given section Declaration void AddControl(ICanvasControl control, ICanvasSection section) Parameters ICanvasControl control ICanvasControl to add ICanvasSection section ICanvasSection that will hold the control. Control will end up in the DefaultColumn . AddControl(ICanvasControl, ICanvasSection, Int32) Adds a new control to your client side page in the given section with a given order Declaration void AddControl(ICanvasControl control, ICanvasSection section, int order) Parameters ICanvasControl control ICanvasControl to add ICanvasSection section ICanvasSection that will hold the control. Control will end up in the DefaultColumn . System.Int32 order Order of the control in the given section AddControl(ICanvasControl, Int32) Adds a new control to your client side page using the default ICanvasSection using a given order Declaration void AddControl(ICanvasControl control, int order) Parameters ICanvasControl control ICanvasControl to add System.Int32 order Order of the control in the default section AddHeaderControl(ICanvasControl, Int32) Adds a new header control to your client side page with a given order. Used for topic page creation Declaration void AddHeaderControl(ICanvasControl control, int order) Parameters ICanvasControl control ICanvasControl to add System.Int32 order Order of the control in the given section AddSection(CanvasSectionTemplate, Single) Adds a new section to your client side page Declaration void AddSection(CanvasSectionTemplate sectionTemplate, float order) Parameters CanvasSectionTemplate sectionTemplate The CanvasSectionTemplate type of the section System.Single order Controls the order of the new section AddSection(CanvasSectionTemplate, Single, VariantThemeType, VariantThemeType) Adds a new section to your client side page Declaration void AddSection(CanvasSectionTemplate sectionTemplate, float order, VariantThemeType zoneEmphasis, VariantThemeType verticalSectionZoneEmphasis = default(VariantThemeType)) Parameters CanvasSectionTemplate sectionTemplate The CanvasSectionTemplate type of the section System.Single order Controls the order of the new section VariantThemeType zoneEmphasis Zone emphasis (section background) VariantThemeType verticalSectionZoneEmphasis Vertical Section Zone emphasis (section background) AddSection(CanvasSectionTemplate, Single, Int32, Nullable) Adds a new section to your client side page Declaration void AddSection(CanvasSectionTemplate sectionTemplate, float order, int zoneEmphasis, int? verticalSectionZoneEmphasis = null) Parameters CanvasSectionTemplate sectionTemplate The CanvasSectionTemplate type of the section System.Single order Controls the order of the new section System.Int32 zoneEmphasis Zone emphasis (section background) System.Nullable < System.Int32 > verticalSectionZoneEmphasis Vertical Section Zone emphasis (section background) AddSection(ICanvasSection) Adds a new section to your client side page Declaration void AddSection(ICanvasSection section) Parameters ICanvasSection section ICanvasSection object describing the section to add AddSection(ICanvasSection, Single) Adds a new section to your client side page with a given order Declaration void AddSection(ICanvasSection section, float order) Parameters ICanvasSection section ICanvasSection object describing the section to add System.Single order Controls the order of the new section AreCommentsDisabled() Does this page have comments disabled Declaration bool AreCommentsDisabled() Returns System.Boolean AreCommentsDisabledAsync() Does this page have comments disabled Declaration Task AreCommentsDisabledAsync() Returns Task < System.Boolean > AvailablePageComponents(String) Gets a list of available client side web parts to use, optionally filtered by a given name Declaration IEnumerable AvailablePageComponents(string name = null) Parameters System.String name Name of the web part to retrieve Returns IEnumerable < IPageComponent > List of available IPageComponent AvailablePageComponentsAsync(String) Gets a list of available client side web parts to use, optionally filtered by a given name Declaration Task> AvailablePageComponentsAsync(string name = null) Parameters System.String name Name of the web part to retrieve Returns Task < IEnumerable < IPageComponent >> List of available IPageComponent ClearPage() Clears the sections and controls from the page Declaration void ClearPage() DefaultWebPartToWebPartId(DefaultWebPart) Translates a given DefaultWebPart enum to it's corresponding web part id. Non default web parts will be returned as empty string Declaration string DefaultWebPartToWebPartId(DefaultWebPart webPart) Parameters DefaultWebPart webPart DefaultWebPart enum to translate to it's id Returns System.String The corresponding web part id Delete() Deletes the created page Declaration void Delete() DeleteAsync() Deletes the created page Declaration Task DeleteAsync() Returns Task DemoteNewsArticle() Demotes an client side Article news page as a regular client side page Declaration void DemoteNewsArticle() DemoteNewsArticleAsync() Demotes an client side Article news page as a regular client side page Declaration Task DemoteNewsArticleAsync() Returns Task DisableComments() Disable commenting on this page Declaration void DisableComments() DisableCommentsAsync() Disable commenting on this page Declaration Task DisableCommentsAsync() Returns Task EnableComments() Enable commenting on this page Declaration void EnableComments() EnableCommentsAsync() Enable commenting on this page Declaration Task EnableCommentsAsync() Returns Task GetComments(Expression>[]) Get list item comments Declaration ICommentCollection GetComments(params Expression>[] selectors) Parameters Expression < Func < IComment , System.Object >>[] selectors The expressions declaring the fields to select Returns ICommentCollection GetCommentsAsync(Expression>[]) Get list item comments Declaration Task GetCommentsAsync(params Expression>[] selectors) Parameters Expression < Func < IComment , System.Object >>[] selectors The expressions declaring the fields to select Returns Task < ICommentCollection > GetImageWebPart(String, PageImageOptions) Prepares an Image web part for adding to a page Declaration IPageWebPart GetImageWebPart(string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters System.String serverRelativeUrl Server relative url of the image to show in the image web part PageImageOptions imageOptions Options to configure the image when being added Returns IPageWebPart Configured image web part which can be added to the page GetImageWebPartAsync(String, PageImageOptions) Prepares an Image web part for adding to a page Declaration Task GetImageWebPartAsync(string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters System.String serverRelativeUrl Server relative url of the image to show in the image web part PageImageOptions imageOptions Options to configure the image when being added Returns Task < IPageWebPart > Configured image web part which can be added to the page GetInlineImage(IPageText, String, PageImageOptions) Prepares an inline image for adding to text by adding the needed image web part and returning the HTML snippet that needs to be appended to the text editor content Declaration string GetInlineImage(IPageText textEditorInstance, string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters IPageText textEditorInstance Text editor instance to add the inline image to System.String serverRelativeUrl Server relative url of the image to add inline PageImageOptions imageOptions Options to configure the inline image when being added Returns System.String Html snippet to be appended to the text editor content GetInlineImageAsync(IPageText, String, PageImageOptions) Prepares an inline image for adding to text by adding the needed image web part and returning the HTML snippet that needs to be appended to the text editor content Declaration Task GetInlineImageAsync(IPageText textEditorInstance, string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters IPageText textEditorInstance Text editor instance to add the inline image to, when the PnP.Core.Model.SharePoint.Page.EditorType is CK5 then this can be left null System.String serverRelativeUrl Server relative url of the image to add inline PageImageOptions imageOptions Options to configure the inline image when being added Returns Task < System.String > Html snippet to be appended to the text editor content GetLikedByInformation() Returns information about the likes on this page Declaration ILikedByInformation GetLikedByInformation() Returns ILikedByInformation GetLikedByInformationAsync() Returns information about the likes on this page Declaration Task GetLikedByInformationAsync() Returns Task < ILikedByInformation > GetPageFile(Expression>[]) Gets the file connected to this page Declaration IFile GetPageFile(params Expression>[] expressions) Parameters Expression < Func < IFile , System.Object >>[] expressions Properties to load for the file Returns IFile The connected IFile GetPageFileAsync(Expression>[]) Gets the file connected to this page Declaration Task GetPageFileAsync(params Expression>[] expressions) Parameters Expression < Func < IFile , System.Object >>[] expressions Properties to load for the file Returns Task < IFile > The connected IFile GetPageTranslations() Returns the page translation status for a given page Declaration IPageTranslationStatusCollection GetPageTranslations() Returns IPageTranslationStatusCollection IPageTranslationStatusCollection list containing information about this page's translations GetPageTranslationsAsync() Returns the page translation status for a given page Declaration Task GetPageTranslationsAsync() Returns Task < IPageTranslationStatusCollection > IPageTranslationStatusCollection list containing information about this page's translations GetTemplatesFolder() Returns the name of the templates folder, and creates if it doesn't exist. Declaration string GetTemplatesFolder() Returns System.String GetTemplatesFolderAsync() Returns the name of the templates folder, and creates if it doesn't exist. Declaration Task GetTemplatesFolderAsync() Returns Task < System.String > InstantiateDefaultWebPart(DefaultWebPart) Instantiates a new web part with default data and returns it Declaration IPageWebPart InstantiateDefaultWebPart(DefaultWebPart webPart) Parameters DefaultWebPart webPart Default web part to instantiate Returns IPageWebPart Instantiated web part InstantiateDefaultWebPartAsync(DefaultWebPart) Instantiates a new web part with default data and returns it Declaration Task InstantiateDefaultWebPartAsync(DefaultWebPart webPart) Parameters DefaultWebPart webPart Default web part to instantiate Returns Task < IPageWebPart > Instantiated web part Like() Likes a page Declaration void Like() LikeAsync() Likes a page Declaration Task LikeAsync() Returns Task NewTextPart(String) Creates a new text part which can be configured and added to the page Declaration IPageText NewTextPart(string text = null) Parameters System.String text Optionally provide the text for the text part Returns IPageText The created text part NewWebPart(IPageComponent) Creates a new web part Declaration IPageWebPart NewWebPart(IPageComponent clientSideComponent = null) Parameters IPageComponent clientSideComponent The base component to use for this web part Returns IPageWebPart The created web part PromoteAsHomePage() Sets the current IPage as home page for the current site Declaration void PromoteAsHomePage() PromoteAsHomePageAsync() Sets the current IPage as home page for the current site Declaration Task PromoteAsHomePageAsync() Returns Task PromoteAsNewsArticle() Promotes a regular Article client side page as a news page Declaration void PromoteAsNewsArticle() PromoteAsNewsArticleAsync() Promotes a regular Article client side page as a news page Declaration Task PromoteAsNewsArticleAsync() Returns Task Publish(String) Publishes a client side page Declaration void Publish(string comment = null) Parameters System.String comment Publishing comment PublishAsync(String) Publishes a client side page Declaration Task PublishAsync(string comment = null) Parameters System.String comment Publishing comment Returns Task RemovePageHeader() Removes the set page header Declaration void RemovePageHeader() RemoveSchedulePublish() Removes the publication schedule of a client side page Declaration void RemoveSchedulePublish() RemoveSchedulePublishAsync() Removes the publication schedule of a client side page Declaration Task RemoveSchedulePublishAsync() Returns Task Save(String) Saves the page to the pages library Declaration string Save(string pageName = null) Parameters System.String pageName Page name to use Returns System.String The name of the saved page SaveAsTemplate(String) Saves the page as a template page Declaration string SaveAsTemplate(string pageName = null) Parameters System.String pageName Page name to use Returns System.String The name of the saved page SaveAsTemplateAsync(String) Saves the page as a template page Declaration Task SaveAsTemplateAsync(string pageName = null) Parameters System.String pageName Page name to use Returns Task < System.String > The name of the saved page SaveAsync(String) Saves the page to the pages library Declaration Task SaveAsync(string pageName = null) Parameters System.String pageName Page name to use Returns Task < System.String > The name of the saved page SchedulePublish(DateTime) Schedules the publication of a client side page Declaration void SchedulePublish(DateTime publishDate) Parameters DateTime publishDate Date when the page needs to be publishing SchedulePublishAsync(DateTime) Schedules the publication of a client side page Declaration Task SchedulePublishAsync(DateTime publishDate) Parameters DateTime publishDate Date when the page needs to be publishing Returns Task SetCustomPageHeader(String, Nullable, Nullable) Sets page header with custom focal point Declaration void SetCustomPageHeader(string serverRelativeImageUrl, double? translateX = null, double? translateY = null) Parameters System.String serverRelativeImageUrl Server relative page header image url System.Nullable < System.Double > translateX X focal point for image System.Nullable < System.Double > translateY Y focal point for image SetDefaultPageHeader() Sets page header back to the default page header Declaration void SetDefaultPageHeader() TranslatePages() Creates page translations for all the languages defined as multi-lingual languages in the site Declaration IPageTranslationStatusCollection TranslatePages() Returns IPageTranslationStatusCollection IPageTranslationStatusCollection list containing information about this page's translations TranslatePages(PageTranslationOptions) Creates page translations for the requested languages Declaration IPageTranslationStatusCollection TranslatePages(PageTranslationOptions pageTranslationOptions) Parameters PageTranslationOptions pageTranslationOptions Options describing the languages in which a translation needs to be created Returns IPageTranslationStatusCollection IPageTranslationStatusCollection list containing information about this page's translations TranslatePagesAsync() Creates page translations for all the languages defined as multi-lingual languages in the site Declaration Task TranslatePagesAsync() Returns Task < IPageTranslationStatusCollection > IPageTranslationStatusCollection list containing information about this page's translations TranslatePagesAsync(PageTranslationOptions) Creates page translations for the requested languages Declaration Task TranslatePagesAsync(PageTranslationOptions pageTranslationOptions) Parameters PageTranslationOptions pageTranslationOptions Options describing the languages in which a translation needs to be created Returns Task < IPageTranslationStatusCollection > IPageTranslationStatusCollection list containing information about this page's translations Unlike() Unlikes a page Declaration void Unlike() UnlikeAsync() Unlikes a page Declaration Task UnlikeAsync() Returns Task WebPartIdToDefaultWebPart(String) Translated a given web part id to a DefaultWebPart enum. Non default web parts will be returned as ThirdParty Declaration DefaultWebPart WebPartIdToDefaultWebPart(string id) Parameters System.String id Web part id to lookup Returns DefaultWebPart Corresponding DefaultWebPart enum value" + "keywords": "Interface IPage A modern SharePoint Page Namespace : PnP.Core.Model.SharePoint Assembly : PnP.Core.dll Syntax public interface IPage Properties Controls List of control on this page Declaration List Controls { get; } Property Value PnP.Core.Model.SharePoint.List < ICanvasControl > DefaultSection The default section of the client side page Declaration ICanvasSection DefaultSection { get; } Property Value ICanvasSection EditorType Returns the editor that was used to create/update this page Declaration EditorType EditorType { get; } Property Value EditorType EntityId Entity id field for topic pages Declaration string EntityId { get; set; } Property Value System.String EntityRelations Entity relations field for topic pages Declaration string EntityRelations { get; set; } Property Value System.String EntityType Entity type field for topic pages Declaration string EntityType { get; set; } Property Value System.String Folder Folder the page lives in (available after saving the page) Declaration string Folder { get; } Property Value System.String HeaderControls List of controls on this page's header Declaration List HeaderControls { get; } Property Value PnP.Core.Model.SharePoint.List < ICanvasControl > KeepDefaultWebParts When a page of type Home is created you can opt to only keep the default client side web parts by setting this to true. This also is a way to reset your home page back the the stock one. Declaration bool KeepDefaultWebParts { get; set; } Property Value System.Boolean LayoutType Layout type of the client side page Declaration PageLayoutType LayoutType { get; set; } Property Value PageLayoutType Name The name of this page (available after saving the page) Declaration string Name { get; } Property Value System.String PageHeader Returns the page header for this page Declaration IPageHeader PageHeader { get; } Property Value IPageHeader PageId ID value of the page (only available when the page was saved) Declaration int? PageId { get; } Property Value System.Nullable < System.Int32 > PageListItem ListItem linked to this page Declaration IListItem PageListItem { get; } Property Value IListItem PagesLibrary Pages library Declaration IList PagesLibrary { get; } Property Value IList PageTitle Title of the client side page Declaration string PageTitle { get; set; } Property Value System.String PnPContext PnPContext to work with Declaration PnPContext PnPContext { get; } Property Value PnPContext RepostDescription Description of the repost page Declaration string RepostDescription { get; set; } Property Value System.String RepostSourceItemId Id of the SharePoint IListItem connected to the page being reposted Declaration Guid RepostSourceItemId { get; set; } Property Value Guid RepostSourceListId Id of the SharePoint IList containting the page being reposted Declaration Guid RepostSourceListId { get; set; } Property Value Guid RepostSourceSiteId Id of the SharePoint ISite containting the page being reposted Declaration Guid RepostSourceSiteId { get; set; } Property Value Guid RepostSourceUrl Url being reposted using the repost page Declaration string RepostSourceUrl { get; set; } Property Value System.String RepostSourceWebId Id of the SharePoint IWeb containting the page being reposted Declaration Guid RepostSourceWebId { get; set; } Property Value Guid ScheduledPublishDate Returns the scheduled publish data of a page (only if publish was scheduled) Declaration DateTime? ScheduledPublishDate { get; } Property Value System.Nullable < DateTime > Sections List of sections on this page Declaration List Sections { get; } Property Value PnP.Core.Model.SharePoint.List < ICanvasSection > SpaceContent Space content field (JSON) for spaces pages Declaration string SpaceContent { get; set; } Property Value System.String ThumbnailUrl Thumbnail url for the page Declaration string ThumbnailUrl { get; set; } Property Value System.String Methods AddControl(ICanvasControl) Adds a new control to your client side page using the default ICanvasSection Declaration void AddControl(ICanvasControl control) Parameters ICanvasControl control ICanvasControl to add AddControl(ICanvasControl, ICanvasColumn) Adds a new control to your client side page in the given section Declaration void AddControl(ICanvasControl control, ICanvasColumn column) Parameters ICanvasControl control ICanvasControl to add ICanvasColumn column ICanvasColumn that will hold the control AddControl(ICanvasControl, ICanvasColumn, Int32) Adds a new control to your client side page in the given section with a given order Declaration void AddControl(ICanvasControl control, ICanvasColumn column, int order) Parameters ICanvasControl control ICanvasControl to add ICanvasColumn column ICanvasColumn that will hold the control System.Int32 order Order of the control in the given section AddControl(ICanvasControl, ICanvasSection) Adds a new control to your client side page in the given section Declaration void AddControl(ICanvasControl control, ICanvasSection section) Parameters ICanvasControl control ICanvasControl to add ICanvasSection section ICanvasSection that will hold the control. Control will end up in the DefaultColumn . AddControl(ICanvasControl, ICanvasSection, Int32) Adds a new control to your client side page in the given section with a given order Declaration void AddControl(ICanvasControl control, ICanvasSection section, int order) Parameters ICanvasControl control ICanvasControl to add ICanvasSection section ICanvasSection that will hold the control. Control will end up in the DefaultColumn . System.Int32 order Order of the control in the given section AddControl(ICanvasControl, Int32) Adds a new control to your client side page using the default ICanvasSection using a given order Declaration void AddControl(ICanvasControl control, int order) Parameters ICanvasControl control ICanvasControl to add System.Int32 order Order of the control in the default section AddHeaderControl(ICanvasControl, Int32) Adds a new header control to your client side page with a given order. Used for topic page creation Declaration void AddHeaderControl(ICanvasControl control, int order) Parameters ICanvasControl control ICanvasControl to add System.Int32 order Order of the control in the given section AddSection(CanvasSectionTemplate, Single) Adds a new section to your client side page Declaration void AddSection(CanvasSectionTemplate sectionTemplate, float order) Parameters CanvasSectionTemplate sectionTemplate The CanvasSectionTemplate type of the section System.Single order Controls the order of the new section AddSection(CanvasSectionTemplate, Single, VariantThemeType, VariantThemeType) Adds a new section to your client side page Declaration void AddSection(CanvasSectionTemplate sectionTemplate, float order, VariantThemeType zoneEmphasis, VariantThemeType verticalSectionZoneEmphasis = default(VariantThemeType)) Parameters CanvasSectionTemplate sectionTemplate The CanvasSectionTemplate type of the section System.Single order Controls the order of the new section VariantThemeType zoneEmphasis Zone emphasis (section background) VariantThemeType verticalSectionZoneEmphasis Vertical Section Zone emphasis (section background) AddSection(CanvasSectionTemplate, Single, Int32, Nullable) Adds a new section to your client side page Declaration void AddSection(CanvasSectionTemplate sectionTemplate, float order, int zoneEmphasis, int? verticalSectionZoneEmphasis = null) Parameters CanvasSectionTemplate sectionTemplate The CanvasSectionTemplate type of the section System.Single order Controls the order of the new section System.Int32 zoneEmphasis Zone emphasis (section background) System.Nullable < System.Int32 > verticalSectionZoneEmphasis Vertical Section Zone emphasis (section background) AddSection(ICanvasSection) Adds a new section to your client side page Declaration void AddSection(ICanvasSection section) Parameters ICanvasSection section ICanvasSection object describing the section to add AddSection(ICanvasSection, Single) Adds a new section to your client side page with a given order Declaration void AddSection(ICanvasSection section, float order) Parameters ICanvasSection section ICanvasSection object describing the section to add System.Single order Controls the order of the new section AreCommentsDisabled() Does this page have comments disabled Declaration bool AreCommentsDisabled() Returns System.Boolean AreCommentsDisabledAsync() Does this page have comments disabled Declaration Task AreCommentsDisabledAsync() Returns Task < System.Boolean > AvailablePageComponents(String) Gets a list of available client side web parts to use, optionally filtered by a given name Declaration IEnumerable AvailablePageComponents(string name = null) Parameters System.String name Name of the web part to retrieve Returns IEnumerable < IPageComponent > List of available IPageComponent AvailablePageComponentsAsync(String) Gets a list of available client side web parts to use, optionally filtered by a given name Declaration Task> AvailablePageComponentsAsync(string name = null) Parameters System.String name Name of the web part to retrieve Returns Task < IEnumerable < IPageComponent >> List of available IPageComponent ClearPage() Clears the sections and controls from the page Declaration void ClearPage() DefaultWebPartToWebPartId(DefaultWebPart) Translates a given DefaultWebPart enum to it's corresponding web part id. Non default web parts will be returned as empty string Declaration string DefaultWebPartToWebPartId(DefaultWebPart webPart) Parameters DefaultWebPart webPart DefaultWebPart enum to translate to it's id Returns System.String The corresponding web part id Delete() Deletes the created page Declaration void Delete() DeleteAsync() Deletes the created page Declaration Task DeleteAsync() Returns Task DemoteNewsArticle() Demotes an client side Article news page as a regular client side page Declaration void DemoteNewsArticle() DemoteNewsArticleAsync() Demotes an client side Article news page as a regular client side page Declaration Task DemoteNewsArticleAsync() Returns Task DisableComments() Disable commenting on this page Declaration void DisableComments() DisableCommentsAsync() Disable commenting on this page Declaration Task DisableCommentsAsync() Returns Task EnableComments() Enable commenting on this page Declaration void EnableComments() EnableCommentsAsync() Enable commenting on this page Declaration Task EnableCommentsAsync() Returns Task GetComments(Expression>[]) Get list item comments Declaration ICommentCollection GetComments(params Expression>[] selectors) Parameters Expression < Func < IComment , System.Object >>[] selectors The expressions declaring the fields to select Returns ICommentCollection GetCommentsAsync(Expression>[]) Get list item comments Declaration Task GetCommentsAsync(params Expression>[] selectors) Parameters Expression < Func < IComment , System.Object >>[] selectors The expressions declaring the fields to select Returns Task < ICommentCollection > GetImageWebPart(String, PageImageOptions) Prepares an Image web part for adding to a page Declaration IPageWebPart GetImageWebPart(string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters System.String serverRelativeUrl Server relative url of the image to show in the image web part PageImageOptions imageOptions Options to configure the image when being added Returns IPageWebPart Configured image web part which can be added to the page GetImageWebPartAsync(String, PageImageOptions) Prepares an Image web part for adding to a page Declaration Task GetImageWebPartAsync(string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters System.String serverRelativeUrl Server relative url of the image to show in the image web part PageImageOptions imageOptions Options to configure the image when being added Returns Task < IPageWebPart > Configured image web part which can be added to the page GetInlineImage(IPageText, String, PageImageOptions) Prepares an inline image for adding to text by adding the needed image web part and returning the HTML snippet that needs to be appended to the text editor content Declaration string GetInlineImage(IPageText textEditorInstance, string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters IPageText textEditorInstance Text editor instance to add the inline image to System.String serverRelativeUrl Server relative url of the image to add inline PageImageOptions imageOptions Options to configure the inline image when being added Returns System.String Html snippet to be appended to the text editor content GetInlineImageAsync(IPageText, String, PageImageOptions) Prepares an inline image for adding to text by adding the needed image web part and returning the HTML snippet that needs to be appended to the text editor content Declaration Task GetInlineImageAsync(IPageText textEditorInstance, string serverRelativeUrl, PageImageOptions imageOptions = null) Parameters IPageText textEditorInstance Text editor instance to add the inline image to, when the PnP.Core.Model.SharePoint.Page.EditorType is CK5 then this can be left null System.String serverRelativeUrl Server relative url of the image to add inline PageImageOptions imageOptions Options to configure the inline image when being added Returns Task < System.String > Html snippet to be appended to the text editor content GetLikedByInformation() Returns information about the likes on this page Declaration ILikedByInformation GetLikedByInformation() Returns ILikedByInformation GetLikedByInformationAsync() Returns information about the likes on this page Declaration Task GetLikedByInformationAsync() Returns Task < ILikedByInformation > GetPageFile(Expression>[]) Gets the file connected to this page Declaration IFile GetPageFile(params Expression>[] expressions) Parameters Expression < Func < IFile , System.Object >>[] expressions Properties to load for the file Returns IFile The connected IFile GetPageFileAsync(Expression>[]) Gets the file connected to this page Declaration Task GetPageFileAsync(params Expression>[] expressions) Parameters Expression < Func < IFile , System.Object >>[] expressions Properties to load for the file Returns Task < IFile > The connected IFile GetPageTranslations() Returns the page translation status for a given page Declaration IPageTranslationStatusCollection GetPageTranslations() Returns IPageTranslationStatusCollection IPageTranslationStatusCollection list containing information about this page's translations GetPageTranslationsAsync() Returns the page translation status for a given page Declaration Task GetPageTranslationsAsync() Returns Task < IPageTranslationStatusCollection > IPageTranslationStatusCollection list containing information about this page's translations GetTemplatesFolder() Returns the name of the templates folder, and creates if it doesn't exist. Declaration string GetTemplatesFolder() Returns System.String GetTemplatesFolderAsync() Returns the name of the templates folder, and creates if it doesn't exist. Declaration Task GetTemplatesFolderAsync() Returns Task < System.String > InstantiateDefaultWebPart(DefaultWebPart) Instantiates a new web part with default data and returns it Declaration IPageWebPart InstantiateDefaultWebPart(DefaultWebPart webPart) Parameters DefaultWebPart webPart Default web part to instantiate Returns IPageWebPart Instantiated web part InstantiateDefaultWebPartAsync(DefaultWebPart) Instantiates a new web part with default data and returns it Declaration Task InstantiateDefaultWebPartAsync(DefaultWebPart webPart) Parameters DefaultWebPart webPart Default web part to instantiate Returns Task < IPageWebPart > Instantiated web part Like() Likes a page Declaration void Like() LikeAsync() Likes a page Declaration Task LikeAsync() Returns Task NewTextPart(String) Creates a new text part which can be configured and added to the page Declaration IPageText NewTextPart(string text = null) Parameters System.String text Optionally provide the text for the text part Returns IPageText The created text part NewWebPart(IPageComponent) Creates a new web part Declaration IPageWebPart NewWebPart(IPageComponent clientSideComponent = null) Parameters IPageComponent clientSideComponent The base component to use for this web part Returns IPageWebPart The created web part PromoteAsHomePage() Sets the current IPage as home page for the current site Declaration void PromoteAsHomePage() PromoteAsHomePageAsync() Sets the current IPage as home page for the current site Declaration Task PromoteAsHomePageAsync() Returns Task PromoteAsNewsArticle() Promotes a regular Article client side page as a news page Declaration void PromoteAsNewsArticle() PromoteAsNewsArticleAsync() Promotes a regular Article client side page as a news page Declaration Task PromoteAsNewsArticleAsync() Returns Task Publish(String) Publishes a client side page Declaration void Publish(string comment = null) Parameters System.String comment Publishing comment PublishAsync(String) Publishes a client side page Declaration Task PublishAsync(string comment = null) Parameters System.String comment Publishing comment Returns Task RemovePageHeader() Removes the set page header Declaration void RemovePageHeader() RemoveSchedulePublish() Removes the publication schedule of a client side page Declaration void RemoveSchedulePublish() RemoveSchedulePublishAsync() Removes the publication schedule of a client side page Declaration Task RemoveSchedulePublishAsync() Returns Task Save(String) Saves the page to the pages library Declaration string Save(string pageName = null) Parameters System.String pageName Page name to use Returns System.String The name of the saved page SaveAsTemplate(String) Saves the page as a template page Declaration string SaveAsTemplate(string pageName = null) Parameters System.String pageName Page name to use Returns System.String The name of the saved page SaveAsTemplateAsync(String) Saves the page as a template page Declaration Task SaveAsTemplateAsync(string pageName = null) Parameters System.String pageName Page name to use Returns Task < System.String > The name of the saved page SaveAsync(String) Saves the page to the pages library Declaration Task SaveAsync(string pageName = null) Parameters System.String pageName Page name to use Returns Task < System.String > The name of the saved page SchedulePublish(DateTime) Schedules the publication of a client side page Declaration void SchedulePublish(DateTime publishDate) Parameters DateTime publishDate Date when the page needs to be publishing SchedulePublishAsync(DateTime) Schedules the publication of a client side page Declaration Task SchedulePublishAsync(DateTime publishDate) Parameters DateTime publishDate Date when the page needs to be publishing Returns Task SetCustomPageHeader(String, Nullable, Nullable) Sets page header with custom focal point Declaration void SetCustomPageHeader(string serverRelativeImageUrl, double? translateX = null, double? translateY = null) Parameters System.String serverRelativeImageUrl Server relative page header image url System.Nullable < System.Double > translateX X focal point for image System.Nullable < System.Double > translateY Y focal point for image SetDefaultPageHeader() Sets page header back to the default page header Declaration void SetDefaultPageHeader() SetPageTitleWebPartPageHeader() Sets page header back to the default for PageTilte WebPart (Message ID: MC791596 / Roadmap ID: 386904). The PageTitle WebPart has to be added into a first OneColumnFullWith Section separate. Declaration void SetPageTitleWebPartPageHeader() TranslatePages() Creates page translations for all the languages defined as multi-lingual languages in the site Declaration IPageTranslationStatusCollection TranslatePages() Returns IPageTranslationStatusCollection IPageTranslationStatusCollection list containing information about this page's translations TranslatePages(PageTranslationOptions) Creates page translations for the requested languages Declaration IPageTranslationStatusCollection TranslatePages(PageTranslationOptions pageTranslationOptions) Parameters PageTranslationOptions pageTranslationOptions Options describing the languages in which a translation needs to be created Returns IPageTranslationStatusCollection IPageTranslationStatusCollection list containing information about this page's translations TranslatePagesAsync() Creates page translations for all the languages defined as multi-lingual languages in the site Declaration Task TranslatePagesAsync() Returns Task < IPageTranslationStatusCollection > IPageTranslationStatusCollection list containing information about this page's translations TranslatePagesAsync(PageTranslationOptions) Creates page translations for the requested languages Declaration Task TranslatePagesAsync(PageTranslationOptions pageTranslationOptions) Parameters PageTranslationOptions pageTranslationOptions Options describing the languages in which a translation needs to be created Returns Task < IPageTranslationStatusCollection > IPageTranslationStatusCollection list containing information about this page's translations Unlike() Unlikes a page Declaration void Unlike() UnlikeAsync() Unlikes a page Declaration Task UnlikeAsync() Returns Task WebPartIdToDefaultWebPart(String) Translated a given web part id to a DefaultWebPart enum. Non default web parts will be returned as ThirdParty Declaration DefaultWebPart WebPartIdToDefaultWebPart(string id) Parameters System.String id Web part id to lookup Returns DefaultWebPart Corresponding DefaultWebPart enum value" }, "api/PnP.Core.Model.SharePoint.IPageComponent.html": { "href": "api/PnP.Core.Model.SharePoint.IPageComponent.html", @@ -2427,7 +2427,7 @@ "api/PnP.Core.Model.SharePoint.PageHeaderType.html": { "href": "api/PnP.Core.Model.SharePoint.PageHeaderType.html", "title": "Enum PageHeaderType | PnP Core SDK", - "keywords": "Enum PageHeaderType Types of pages headers that a page can use Namespace : PnP.Core.Model.SharePoint Assembly : PnP.Core.dll Syntax public enum PageHeaderType : int Custom The page use a customized header (e.g. with image + offset) Default The page uses the default page header None The page does not have a header" + "keywords": "Enum PageHeaderType Types of pages headers that a page can use Namespace : PnP.Core.Model.SharePoint Assembly : PnP.Core.dll Syntax public enum PageHeaderType : int Custom The page use a customized header (e.g. with image + offset) Default The page uses the default page header None The page does not have a header PageTitleWebPart All Headersettings are in the PageTitle WebPart. PageTitle-WP in first section as OneColumnFullWith (Message ID: MC791596 / Roadmap ID: 386904)" }, "api/PnP.Core.Model.SharePoint.PageImageAlignment.html": { "href": "api/PnP.Core.Model.SharePoint.PageImageAlignment.html", diff --git a/manifest.json b/manifest.json index 1193f562e1..e0bbb1dae0 100644 --- a/manifest.json +++ b/manifest.json @@ -4914,7 +4914,7 @@ "output": { ".html": { "relative_path": "api/PnP.Core.Model.SharePoint.IPage.html", - "hash": "1S/cVwmp73YCItiC4K7qOKtgetZtpUCceZCoyucm5zY=" + "hash": "Ygo7FnwukZq08QNie8AN/Fs4RIbYYUMdYDbo9JKZ9TU=" } }, "is_incremental": false, @@ -5790,7 +5790,7 @@ "output": { ".html": { "relative_path": "api/PnP.Core.Model.SharePoint.PageHeaderType.html", - "hash": "/yRnTlDM+b00oqYWaAu2Jum2hS1r3Dluh/C5B0/0SEI=" + "hash": "vRQqrsiPoqduZVdxVrQMb8kCqmgnHx3m7qDV4SyfvEY=" } }, "is_incremental": false, diff --git a/xrefmap.yml b/xrefmap.yml index 42fbda3f3d..a9227de276 100644 --- a/xrefmap.yml +++ b/xrefmap.yml @@ -41918,6 +41918,19 @@ references: isSpec: "True" fullName: PnP.Core.Model.SharePoint.IPage.SetDefaultPageHeader nameWithType: IPage.SetDefaultPageHeader +- uid: PnP.Core.Model.SharePoint.IPage.SetPageTitleWebPartPageHeader + name: SetPageTitleWebPartPageHeader() + href: api/PnP.Core.Model.SharePoint.IPage.html#PnP_Core_Model_SharePoint_IPage_SetPageTitleWebPartPageHeader + commentId: M:PnP.Core.Model.SharePoint.IPage.SetPageTitleWebPartPageHeader + fullName: PnP.Core.Model.SharePoint.IPage.SetPageTitleWebPartPageHeader() + nameWithType: IPage.SetPageTitleWebPartPageHeader() +- uid: PnP.Core.Model.SharePoint.IPage.SetPageTitleWebPartPageHeader* + name: SetPageTitleWebPartPageHeader + href: api/PnP.Core.Model.SharePoint.IPage.html#PnP_Core_Model_SharePoint_IPage_SetPageTitleWebPartPageHeader_ + commentId: Overload:PnP.Core.Model.SharePoint.IPage.SetPageTitleWebPartPageHeader + isSpec: "True" + fullName: PnP.Core.Model.SharePoint.IPage.SetPageTitleWebPartPageHeader + nameWithType: IPage.SetPageTitleWebPartPageHeader - uid: PnP.Core.Model.SharePoint.IPage.SpaceContent name: SpaceContent href: api/PnP.Core.Model.SharePoint.IPage.html#PnP_Core_Model_SharePoint_IPage_SpaceContent @@ -54256,6 +54269,12 @@ references: commentId: F:PnP.Core.Model.SharePoint.PageHeaderType.None fullName: PnP.Core.Model.SharePoint.PageHeaderType.None nameWithType: PageHeaderType.None +- uid: PnP.Core.Model.SharePoint.PageHeaderType.PageTitleWebPart + name: PageTitleWebPart + href: api/PnP.Core.Model.SharePoint.PageHeaderType.html#PnP_Core_Model_SharePoint_PageHeaderType_PageTitleWebPart + commentId: F:PnP.Core.Model.SharePoint.PageHeaderType.PageTitleWebPart + fullName: PnP.Core.Model.SharePoint.PageHeaderType.PageTitleWebPart + nameWithType: PageHeaderType.PageTitleWebPart - uid: PnP.Core.Model.SharePoint.PageImageAlignment name: PageImageAlignment href: api/PnP.Core.Model.SharePoint.PageImageAlignment.html