Forum Discussion

María José Pedreira's avatar
María José Pedreira
Brass Contributor
Apr 27, 2017

Update with PnP Navigation Settings

Hi all,

 

I need to update the property Show pages on Site Settings > Navigation Settings > Global Navigation > Show Pages using PnP

 

I'm not able to find the way for doing it. Thank you!

 

 

 

 

 

3 Replies

  • Russell Gove's avatar
    Russell Gove
    Iron Contributor

    hi, that's controlled by a property on the spweb object, you can update in using power shell by updating the webs property bag.

     

    web.AllProperties["__GlobalNavigationIncludeTypes"] = "1";

  • Last time I looked (Over a year ago) you couldnt do with PNP but you can with others eg

     

    https://sharepoint.stackexchange.com/questions/202858/navigation-settings-csom-powershell-for-sharepoint-online