For the extra level of customization we are doing on our website we have manipulated the DNN Nodes Collection to remove certain nodes for certain people. Now we need to reverse this process and need to add nodes if conditions are right for the user.
I have tried this
Dim newNode As New DotNetNuke.UI.WebControls.DNNNode
newNode.NavigateURL = NavigateURL(12)
newNode.Text = "test"
newNode.ID = "x3"
then
objNodes.Add(newNode)
'objNodes' is the main node collection - I think i need to create a collection and add it to the child of a specific node but not sure how.