ApplyNavigationStructure Method
Applies the navigation structure to the specified object.
expression.ApplyNavigationStructure
expression An expression that returns a WebEx object.
Remarks
There are two details to keep in mind when programmatically creating files and navigation nodes:
- Navigation labels cannot be empty.
- Changes to the navigation structure can be lost if you don't apply the navigation structure before starting operations that affect the content of the Web site such as moving or adding files or folders.
Example
This example adds a navigation node as the rightmost child node and then applies the changes to the navigation structure.
Private Sub AddNewNavNode()
Dim myWeb As WebEx
Dim myChildNodes As NavigationNodes
Dim myNewNavNode As NavigationNode
Set myWeb = ActiveWeb
Set myChildNodes = _
myWeb.RootFolder.Files(1).NavigationNode.Children
myNewNavNode = _
myChildNodes.Add(myWeb.Url & "Sale.htm", "Sale", _
fpStructRightmostChild)
myWeb.ApplyNavigationStructure
End Sub