Copied to clipboard

Flag this post as spam?

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


  • Morten K. J. 23 posts 64 karma points
    Aug 25, 2010 @ 11:38
    Morten K. J.
    0

    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.

     

  • Morten K. J. 23 posts 64 karma points
    Aug 25, 2010 @ 13:53
    Morten K. J.
    0

    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).

  • 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