SiteMap.Provider.CurrentNode.Title

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top