Good Day All,
The following always return zero when I am not logged on
CMS.DocumentEngine.TreeNode tn = TreeHelper.SelectSingleNode(oid);
lblInfo.Text = tn.Parent.Children.Count.ToString();
When logged in to admin I get 6 which is the correct amount for the Parent.
What I am trying to achieve is the nodealiaspath for the previous and next document in the tree if the exist
Please take a look at the following article which should help you to fix this issue:
API Changes in the Security of Document collection
Best regards, Martin
Thanks alot worked like a charm
Great, I'm glad to hear that! You're welcome.
Please, sign in to be able to submit a new answer.