Hi guys. Let’s explore how to implement a meta data-driven term store-developed navigation across a Modern Site using the Look and Feel>>Navigation option. This concept can be directly applied while working with a Classic Site collection but when you try to work on a Modern Site collection we need to do a few tunings before proceeding.
If we try to activate the SharePoint Server Publishing Infrastructure by going to Site Settings>>Site Collection Features we receive an error.
Hence we need to work on this using PnP Powershell to activate the feature as explained in the below snap shot.
- $Tenantadminurl = https:
- Connect-PnPOnline $Tenantadminurl -useweblogin
- Connect-PnPOnline https:
- Enable-PnPFeature -Identity dffaae84-60ee-413a-9600-1cf431cf0560 -force #RollupPages
- Enable-PnPFeature -Identity 22a9ef51-737b-4ff2-9346-694633fe4416 -force #Publishing
- Enable-PnPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -force -Scope site #SharePoint Server Publishing Infrastructure of Site Collection
- Enable-PnPFeature -Identity 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb -force -Scope web #SharePoint Server Publishing Infrastructure of Site
Once you check into the Site Collection Features link of your respective Modern Site collection [https://<TenantName>.sharepoint.com/sites/HubA/_layouts/15/ManageFeatures.aspx?Scope=Site] you can see the magic happened!
The above required feature has been activated.
Now go to your Term Store Management Space by following this path:- Site Settings>> Look and Feel>> Navigation OR directly move to this path - https://<TenantName>.sharepoint.com/sites/HubA/_layouts/15/AreaNavigationSettings.aspx
Once you're done with your Term Set creation go with the below selections under the Navigation option.
Now map it in the Managed Navigation: Term Set section part.
Click Ok and refresh the Modern Site collection to see the changes reflected.
Note
If you still fail to implement the above changes even after having full control on your Modern Site collection, then please contact your SharePoint O365 Administrator to get it resolved.
If you want to revert the changes back to deactivate the features we can follow the below PnP PowerShell scripts for it.
- Disable-PnPFeature -Identity 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb -force -Scope web #SharePoint Server Publishing Infrastructure of Site
- Disable-PnPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -force -Scope site #SharePoint Server Publishing Infrastructure of Site Collection
For a better and detailed understanding I am also providing you the total process document including the snapshots wherever necessary for a crystal clear understanding while working on this requirement.
Happy Modern Sites Managed Navigation development with Term Set implementation for your business needs.