Company A - Division A -- Department A --- Sub department A Company B
Each level of the tree displays data from a separate tabel in a database, and I have used the nodeKey to store information about the id from the table (like in the above link). All of the above works nicely.
But, I am stuck with implementing create and delete navigation for each node. I have done as shown in the fourht video regarding creating custom tree (http://umbraco.org/documentation/videos/for-developers/custom-sections,trees-and-pages/setting-up-create-and-delete). Basically the problem is that I need a way to tell which level of the tree that I am on in the Save and Delete method in my class implementing the ITaskReturnUrl interface - or to access the nodeKey where that information is available.
I figured it out myselft - with a little help from a friend :) The missing link was setting NodeType to unique types (like "Company", "Division" etc.) for each level and creating matching <nodeType> elements in umbraco\config\create\UI.xml with individual classes for the tasks (create and delete).
Delete/Create items at different level at multilevel custom tree
Hi, I have created a custom tree like shown at: http://www.netaddicts.be/articles/building-a-custom-section-to-manage-external-data.aspx. It basically displays a 4-level tree like the following:
Company A
- Division A
-- Department A
--- Sub department A
Company B
Each level of the tree displays data from a separate tabel in a database, and I have used the nodeKey to store information about the id from the table (like in the above link). All of the above works nicely.
But, I am stuck with implementing create and delete navigation for each node. I have done as shown in the fourht video regarding creating custom tree (http://umbraco.org/documentation/videos/for-developers/custom-sections,trees-and-pages/setting-up-create-and-delete). Basically the problem is that I need a way to tell which level of the tree that I am on in the Save and Delete method in my class implementing the ITaskReturnUrl interface - or to access the nodeKey where that information is available.
I figured it out myselft - with a little help from a friend :) The missing link was setting NodeType to unique types (like "Company", "Division" etc.) for each level and creating matching <nodeType> elements in umbraco\config\create\UI.xml with individual classes for the tasks (create and delete).
is working on a reply...