SiteMap.Provider.CurrentNode.Title

  • Thread starter Thread starter Mark B
  • Start date Start date
M

Mark B

In my Title and Description web.sitmap file I use:

3255|Home
5434|Support
5342|Contact

etc in the Title and Description properties. The number represents a phrase
lookup ID in a function that returns a translated word in French, German
etc.

The following works to amend all SiteMap Node titles in memory.

Function fSetMenuItems() As Boolean

Dim siteNodes As SiteMapNodeCollection
siteNodes = SiteMap.RootNode.GetAllNodes()
Dim s As SiteMapNode

For Each s In siteNodes
SiteMap.Provider.CurrentNode.ReadOnly = False
s.ReadOnly = False
s.Title = fGetLanguageIDValue(Val(Left(s.Title,4)),
strCurrentLanguageCode) 'Return the translated word
Next

End Function


After I have changed to French however and want to go to German, I need to
know the original XML values of the Title and Description so I can run
fSetMenuItems again.

How can I get them?
 
Back
Top