Note
As there is a bug in Managed Metadata to get around that bug we add all the sub sites with an underscore at the URL. So friendly URLs will never have the underscore and you will be able to add multiple friendly URL pages in each sub-sites.
It is referenced in this
blog about the issue.
This is a SharePoint solutions created using SharePoint object model.
Supported SharePoint Version
Prerequisites Before Deployment.
- SharePoint publishing Site
- Managed Metadata Service Application
- Term Store for Navigation name="Site Navigation"
- Enable Managed Metadata Navigation in Site Collection
- Add a app keys to the web config with the name of the Term Set This program uses Site Navigation
- <add key="Site Navigation" value="term group name" />
- Deploy the solution to the Web Application
- Activate the features in Site Collection Feature title is ManagedMetadataNavigation
- Make Sure the People who will add new pages and new sub-site in the site collection has enough permission to the term store to add new terms.