Hi !
I got some wierd behaviour when adding Wiki pages programmatically.
teh following code works fine exept the Home page of a wiki site.
SPNavigationNodeCollection navigationNodes = cWeb.Navigation.QuickLaunch;
cWeb.AllowUnsafeUpdates = true;
foreach (SPNavigationNode node in navigationNodes)
{
if ("Wiki Pages" == node.Title)
{
SPNavigationNode newSiteNode = new SPNavigationNode(wikiPage.Name.Substring(0, wikiPage.Name.Length - 6), wikiPage.ServerRelativeUrl);
node.Children.Add(newSiteNode, node);
node.Update();
break;
}
}
So the problem is :
Wiki Home is not displayed in the quick launch under Wiki Pages node.
1. when quering the QL i can retreive it programmatically.
2. when I am going to /_layouts/quiklnch.aspx , the Home link is there too.
but the wiki QL wuoun't display it. is that sort of a bug/feature on wiki pages site?
--