Skip to content

Commit

Permalink
Merge branch 'fix_modernPageTitle' of https://github.com/MondayCoffee…
Browse files Browse the repository at this point in the history
…/pnpframework into pr1102
  • Loading branch information
jansenbe committed Jan 16, 2025
2 parents 7f9f728 + ee011f6 commit 66e7d75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ private void CreatePage(Web web, ProvisioningTemplate template, TokenParser pars
}
case ClientSidePageHeaderType.Default:
{
//Message ID: MC791596 / Roadmap ID: 386904 =>based on #1058 the PageTitle WebPart is not always in first section
if (clientSidePage.Sections.Any(s => s.Type == CanvasSectionType.OneColumnFullWidth && s.Controls.Any(c => c.Type == WebPartType.PageTitle)))
//Message ID: MC791596 / Roadmap ID: 386904 =>based on #1058 the PageTitle WebPart is not always in first section and section can be of any type as it seems
if (clientSidePage.Sections.Any(s => s.Controls.Any(c => c.Type == WebPartType.PageTitle)))
{
page.SetPageTitleWebPartPageHeader();
}
Expand Down

0 comments on commit 66e7d75

Please sign in to comment.