Replies: 1 comment
-
Did you ever find a solution for setting HtmlPropertiesData ? I'm stuck on this too trying to setup up a People web part using PnP Powershell |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Use Case:
My original scenario was to translate text in modern pages. I was able to translate the text webparts but we image webparts with captions below it. We do not find any cmdlet to get Image webpart and get captionText. We can get image webpart CaptionText only under HtmlPropertiesData property.
To get the image webparts, we are filtering the webparts when Title is Image, and get PropertiesJson and update the PropertiesJson property back. We cannot set HtmlPropertiesData property since this is read-only.
We are trying the following script however the captionText is updatable. Is there any way that we can update image webpart captionText from PnP PowerShell?
`
// my code here
`
Any suggestions would be appreciated!
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions