You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to update a QuickLinks webpart using Powershell on either the Home.aspx or TopicHome.aspx page which contains a QuickLinks webpart I receive the following error:
Set-PnPPageWebPart -Page $MyPage -Identity $tmp -PropertiesJson $ …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot host text controls inside a one column full width section, only an image web part or hero web part are allowed
Using the same command to update any other page I have created with a QuickLinks webpart works fine. FYI - I have validated my json file on a random page.aspx containing a QuickLink webpart to rule out some issue with the json file itself. It works fine on regular page.aspx files.
Steps to reproduce
Set-PnPPageWebPart -Page $MyPage -Identity $tmp -PropertiesJson $JSONObj
$page="Home.aspx" or "TopicHome.aspx" on a given site collection where home has empty Quicklinks webpart
$tmp is the InstanceID of the QuickLinks webpart on $page
$JSONObj is the json containing links to the buttons I want to config in the QuickLinks
Expected behavior
I expected the QuickLinks webpart on the page to update with links associated with buttons on the webpart control.
@seegerp2000 : I did several changes to the Pages API today, would recommend testing again tomorrow with the nightly builds of PnP Core SDK and PnP PS. Also be aware of the fact that pages changed the header implementation, the header now is a Banner web part in a full width section on the page...if you're trying to add your quicklinks web part in the section containing the header then that will fail by design given full width sections only allow certain type of controls (and quicklinks is not one of them). You can test with adding the sectionIndex 2 instead of 1.
Category
Describe the bug
When trying to update a QuickLinks webpart using Powershell on either the Home.aspx or TopicHome.aspx page which contains a QuickLinks webpart I receive the following error:
Using the same command to update any other page I have created with a QuickLinks webpart works fine. FYI - I have validated my json file on a random page.aspx containing a QuickLink webpart to rule out some issue with the json file itself. It works fine on regular page.aspx files.
Steps to reproduce
Set-PnPPageWebPart -Page $MyPage -Identity $tmp -PropertiesJson $JSONObj
$page="Home.aspx" or "TopicHome.aspx" on a given site collection where home has empty Quicklinks webpart
$tmp is the InstanceID of the QuickLinks webpart on $page
$JSONObj is the json containing links to the buttons I want to config in the QuickLinks
Expected behavior
I expected the QuickLinks webpart on the page to update with links associated with buttons on the webpart control.
Environment details (development & target environment)
Additional context
Thanks for your contribution! Sharing is caring.
AddWebPartPrototypeSanitized.txt
The text was updated successfully, but these errors were encountered: