Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 7 posts 27 karma points
    Aug 30, 2011 @ 15:54
    Dan
    0

    Custom Tree not refreshing correctly

    Hello,

    I have successfully added an additional custom tree to the content section by inheriting from the BaseTree class and adding a record to the umbracoAppTree table. This renders fine on first load:

    However when I click on another section and click back on the content section, the tree is not refreshed correctly.

    The text of each link seems to be a concatenation of the names of all the nodes in the custom tree.

    Has anyone come across this before?

    Dan

  • Dan 7 posts 27 karma points
    Aug 30, 2011 @ 16:13
    Dan
    0

    Ok,

    I noticed I wasn't supplying a NodeID value for each XmlTreeNode I was adding. Doing this fixes the issue.

    Dan

  • Rich Green 2246 posts 4006 karma points
    Aug 30, 2011 @ 16:15
    Rich Green
    0

    Hey Dan,

    I believe this error occurs when each node id is not unique, I think you have to explicity set a unique node id when adding the custom nodes.

    Rich

  • Dan 7 posts 27 karma points
    Aug 30, 2011 @ 16:38
    Dan
    0

    Thanks Rich, I must have posted my update at the same time as you.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies