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.
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
Ok,
I noticed I wasn't supplying a NodeID value for each XmlTreeNode I was adding. Doing this fixes the issue.
Dan
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
Thanks Rich, I must have posted my update at the same time as you.
is working on a reply...