I have a website as follows:
- SiteA
---- Subsite1
---- Subsite2
Now when I try to access the QuickLaunch property, it is always empty, for example
SPNavigation nav = spWeb.Navigation;
if (nav.QuickLaunch.Count == 0)
{
}
However, if I go to SiteA's Navigation Settings (via the user interface) and reorder any site in the list, only then QuickLanuch will become available. (The rest of the settings are left by default)
Can anyone explain this behavior? I really need access to QuickLaunch items.
thanks
fixer
source
share