-
Notifications
You must be signed in to change notification settings - Fork 306
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
PnPJs "setBannerImage" is not updating the bannerImageUrl for the sitepages #3095
Comments
Hi, I have also fixed the issue but the banner area is not replacing the existing one instead it is creating another one extra banner area. Can anybody tell it is because of the version issue or bug in the PnPjs Library? |
Hi, not sure. We'd have to explore it and see if it's happening in V4 (I suspect it is, the code here is largely the same) However, please see this comment #3096 (comment) We've basically reversed engineered the page structure to build out the pages module (since APIs were lacking). So these pages methods certainly are more susceptible to issues as Microsoft continues to update pages. Until a pages API exists, this is a revolving door of fixes for this module. |
SharePoint Client-side Pages API is being deprecated and no changes will be made to the existing endpoint. Closing this issue to track pages updates to #3137 |
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked. |
What version of PnPjs library you are using
2.x (No longer supported)
Minor Version Number
2.11.0
Target environment
SharePoint Framework
Additional environment details
I'm using nodejs (14.21.3) and PnPjs(2.11.0)
Question/Request
Hi,
I've been trying to update the bannerImageUrl for a site page using PnPJs, but the bannerImage is not updating.
We need to copy an existing page on the site. While the copying process works, the banner image is missing on the copied page. To fix this, I attempted to update the banner image using the following code:
However, it's not working as expected. Could you help me resolve this issue?
I am using PnPJs version 2.11.0. I've encountered the same issue reported here: the bannerImageUrl for a site page is not updating.
The text was updated successfully, but these errors were encountered: