Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to get the collection of all the items of left menu programmatically.

When any new publishing page is added, it shows in OOTB left navigation, but when I try to get navigation nodes programmatically using "PublishingWeb.Navigation.CurrentNavigationNode" this does not include newly added publishing page.

If I go to Site Settings >> Navigation, and show/hide any node and click "OK", then "PublishingWeb.Navigation.CurrentNavigationNode" starts including newly added page as well.

I need to do this programmatically, how to get newly added page included in "PublishingWeb.Navigation.CurrentNavigationNode" without performing show/hide manually from Site Settings | Navigation.

Any advice how to get this worked will be appreciated.

share|improve this question

1 Answer 1

ys. one of my friend had also wasted a whole day just to get newly added page in navigation collection. but no luck. My suggestion is try to use sitemapdatasource for that. may be it can help you.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.