开发者

DNNNode and DNNNodeCollection

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 nod开发者_运维知识库es 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.


It should be as simple as the following...

Dim newChildNode as New DotNetNuke.UI.WebControls.DNNNode()
With newChildNode
    .ID = "x4"
    .Text = "Text"
    .NavigateURL = NavigateURL(4)
End With

newNode.DNNNodes.Add(newChildNode)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜