Skip to content

HeaderType Custom with LayoutType NoImage exported with HeaderType Default #1640

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

Open
1 task done
roberAlb opened this issue Apr 9, 2025 · 0 comments
Open
1 task done
Labels
area: pages API 📄 Working with modern pages

Comments

@roberAlb
Copy link

roberAlb commented Apr 9, 2025

Category

  • Bug

Describe the bug

I have provisioned a page with <pnp:Header Type="Custom" LayoutType="NoImage" and when I'm trying to export it it's coming as <pnp:Header Type="Default" LayoutType="NoImage"

Steps to reproduce

I have checked the code in PageHeader.cs and there is a condition in line 259 when there is imageServerRelativeUrl to apply custom, but you can have a custom layout with no image.

if (!string.IsNullOrEmpty(imageServerRelativeUrl))
{
Type = PageHeaderType.Custom;
........

Expected behavior

I'm expecting to export the page as it was provisioned

Environment details (development & target environment)

  • SDK version: 1.14
  • OS: Win 10
  • SDK used in:ASP.Net Web app
  • Framework: NET Core v8
@jansenbe jansenbe added the area: pages API 📄 Working with modern pages label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: pages API 📄 Working with modern pages
Projects
None yet
Development

No branches or pull requests

2 participants