snazim se na 2010 skriptem prejmenovat polozku v quicklaunch menu, najdu, zmenim a zavolam jeji update() Microsoft.SharePoint.Navigation.SPNavigationNode, updatnu i web a v prohlizeci zmenu nevidim, prestoze kdyz skript spustim znova, tak uz nactu tu novou mnou drive nastavenou hodnotu.
$url = "http://artemis/customers/anavek"
$web = Get-SPWeb $url
$qlNav = $web.Navigation.QuickLaunch
$qlHeading = $qlNav | where { $_.Title -eq "Zakázky1" }
$qlHeading.Title = "Zakázky2"
$qlHeading.Update()
$web.Update()
a pokud zkusim i
$qlNav.Update()
tak
Method invocation failed because [Microsoft.SharePoint.Navigation.SPNavigationNodeCollection] doesn't contain a method named 'Update'.
prestoze tam ta metoda je...
SPNavigationNode.Update Method (Microsoft.SharePoint.Navigation)
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.navigation.spnavigationnode.update.aspx
netusite, co to muze byt?