-
Notifications
You must be signed in to change notification settings - Fork 143
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
Not able to edit the modern Page created using PnP Powershell #1000
Comments
We are using PnpFramework nuget package and have the same issue |
I am also having this issue, is there an updated option? |
It's an Microsoft issue and happens only if create blank page. Including CanvasLayout property into the request fixes the issue |
Is there a way to fix it after the fact? I indeed created it and then applied the settings as per what i found on the web, thanks. |
Is there a way to fix this afterwards without having to redo the page. I have tried a few things, but for each i have to start over and using the commands i have will cuase it to break again. |
@JMTechno @rajkumar6193 @WF-Personal @nm-sys Adding a page section fixed this issue for me. Try adding this just after you create a page #create a page #create a section below to fix the issue |
Awesome, I have to update the script for some other stuff so I will test that and get back to you. Thanks so much, makes sense actually.
***@***.***<https://whitefox.com/>
John Moleski
IT Project Manager
587 434 6001
***@***.*** 587 323 5888
***@***.*** ***@***.******@***.***>
***@***.*** whitefox.com<https://whitefox.com/>
[https://whitefox.com/email-banner/solutions-fit.png]
Business office: Whitefox Technologies Canada Ltd - Suite 410 - 1824 Crowchild Trail NW, Calgary, AB T2M 3Y7, Canada
Company No: 641175-4
Voted as one of the 50 Hottest Companies in the Advanced Bioeconomy, The Digest.
Named as one of the Sunday Times Top 10 Green Tech companies to watch.
Winner, BusinessGreen, International Impact Award: Energy Efficient Ethanol Plants.
Winner, Clean Energy Awards: Most Efficient Biofuels Separation Technology Provider.
This message and any files transmitted with it are intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited and you are requested to notify the sender immediately. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
From: Nirav Raval ***@***.***>
Sent: Thursday, July 18, 2024 9:22 AM
To: pnp/pnpframework ***@***.***>
Cc: John Moleski ***@***.***>; Comment ***@***.***>
Subject: Re: [pnp/pnpframework] Not able to edit the modern Page created using PnP Powershell (Issue #1000)
External Message!
Adding a page section fixed this issue for me. Try adding this just after you create a page
#create a page
$page = Add-PnPPage -Name "This is page Name" -LayoutType Article
#create a section below to fix the issue
Add-PnPPageSection -Page $page -SectionTemplate OneColumn -Order 1
Ref:
-
Reply to this email directly, view it on GitHub<#1000 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6QRXNUB7GOEISJXBRCD3HDZM7MQBAVCNFSM6AAAAABFI64YTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZWHA2DQNZVGE>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
I created a modern pages using PnP powershell but when i tried to edit it is showing an error.
![image](h
ttps://github.com/pnp/pnpframework/assets/115466015/88490127-253e-475e-bec2-ff8fb6170061)
Script i used is
Add-PnPPage -Title <title> -Name <title> -LayoutType Article -HeaderLayoutType NoImage -CommentsEnabled:$false -Publish:$true
The text was updated successfully, but these errors were encountered: