Question

When I create pages in a publishing site the pages are automatically added to the navigation.

What if I dont want certain pages to show on the navigation, how can I do that automatically/conditionally?

Was it helpful?

Solution

This blog post from Ton Stegeman should tell you everything you need to know. Look at PublishingWeb.ExcludeFromNavigation().

OTHER TIPS

Remove them from the navigation using site settings?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top