Skip to content

Support modernheaderfooter for pnp.framework#1180

Draft
czullu wants to merge 4 commits into
pnp:devfrom
MondayCoffee:Fix_pnpcore_1691_modernheaderfooter
Draft

Support modernheaderfooter for pnp.framework#1180
czullu wants to merge 4 commits into
pnp:devfrom
MondayCoffee:Fix_pnpcore_1691_modernheaderfooter

Conversation

@czullu

@czullu czullu commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

depends on pnp/pnpcore#1691

christian zuellig added 4 commits September 8, 2025 13:32
rebuild from webProperties and use pnp.core BrandingManager

Open to implement:
"footerbackgroundimageurl",
"footerbackgroundimagefocalpoint",
"backgroundimageurl"
fix SiteFooter - Url needs decoding
//Header Background Image
var backgroundImageUrl = web.GetPropertyBagValueString("BackgroundImageUrl", "");
if (!string.IsNullOrWhiteSpace(backgroundImageUrl))
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are missing a Uri.UnescapeDataString here

web.Context.ExecuteQueryRetry();
ClientResult<Stream> stream = file.OpenBinaryStream();
web.Context.ExecuteQueryRetry();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And you are missing a
web.EnsureProperty(f => f.ServerRelativeUrl); I think because when I was running it gave a property is not loaded exception

@Adam-it Adam-it added the area: provisioning ⚙ Provisioning engine issue or pull request label May 10, 2026
@Adam-it

Adam-it commented May 10, 2026

Copy link
Copy Markdown
Member

@czullu the related PR in the PnP Core repo needs a bit of attention before we merge it and then we may proceed with this one. I will set it as draft for now

@Adam-it Adam-it marked this pull request as draft May 10, 2026 22:07
@Adam-it Adam-it self-assigned this May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: provisioning ⚙ Provisioning engine issue or pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants