Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages "extraction" fails, when (modern) Announcements library was created #974

Closed
nils-a opened this issue Jan 26, 2024 · 1 comment · Fixed by #975
Closed

Pages "extraction" fails, when (modern) Announcements library was created #974

nils-a opened this issue Jan 26, 2024 · 1 comment · Fixed by #975

Comments

@nils-a
Copy link
Contributor

nils-a commented Jan 26, 2024

I have a site, marked as the "home site" in viva connections. Since that time, the site also contains an "Announcements" library:
image

Since the time the Announcements-Library existed, Get-PnPSiteTemplate -out test.xml -Handlers PageContents -IncludeAllClientSidePages creates only empty templates, containing no pages at all.

My first quick finding was that

sitePagesLibrary = listCollection.Where(p => p.BaseTemplate == (int)ListTemplateType.WebPageLibrary).FirstOrDefault();

returns the Announcements library, instead of the Site Pages.

@nils-a
Copy link
Contributor Author

nils-a commented Jan 26, 2024

This problem corresponds perfectly to pnp/pnpcore@0ea1c82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant