开发者

areanavigationsettings.aspx Programmatically

I've been messing with SPNavigationProvider, PublishingWebs, and etc for 开发者_JAVA技巧the past few days and I can not figure out how to move a node in /_layouts/areanavigationsettings.aspx programmatically.

The node I need to move is in the list of the Global Navigation, but when I query the SPPublihsingWeb.GlobalNavigationNodes it is not listed. When I call IncludeInNavigation() on the web I need in GlobalNavigationNodes, there is no change.

I'm doing this through a Feature Activation if that makes any difference.

I appreciate any help.

Thanks.


You probably want to do similar things I just did: Deploy custom Navigation / SiteMap via Feature?.

Instead of using the Publishing Site, why not use the SPWeb.Navigation?

Check out the following MSDN entry on Adding Links through Object Model - just iterate over the Children of SPWeb.Navigation and you will find your link and will be able to modify it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜