Skip to content

Need a little help with a News WebPart #3758

Closed Answered by NoralK
NoralK asked this question in Q&A
Discussion options

You must be logged in to vote

Well here is the answer, it took a few days. The structure was partially off (thank you ?maintenancemode=true). To make this work there must also be a line in there for dataVersion. If left out then anything values showNewsMetadata is ignored.

Also, you cannot use quoted "false" or "true" it must be $false or $true.

    $propsNewsWebPart = @{
        "title"                     = "News"
        "dataVersion"               = "1.13"
        "properties"                = @{
            "showNewsMetadata"      = @{
                "showAuthor"        = $false
                "showSocialActions" = $false
                "showDate"          = $false
            }
            "dataProviderId"   …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NoralK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant