Copied to clipboard

Flag this post as spam?

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


  • Janaka Lakmal 25 posts 72 karma points
    Feb 07, 2014 @ 10:06
    Janaka Lakmal
    0

    Custom Tree with more than one node

    When there is a more than one node in Umbraco 7 custom tree, Umbraco looks for  /app_plugins/customsection/backoffice/CustomSectionTree/edit.html for all the nodes. Has anybody had this issue?

     


  • David Brendel 786 posts 2949 karma points c-trib
    Feb 11, 2014 @ 11:45
    David Brendel
    0

    Thats the normal behavior.

    You have to tell the node which path angular should open when the user clicks on the node.

    In your code you use the CreateTreeNode-Methode like this:

    CreateTreeNode(nodeID, parentID, queryStrings, "Text", "icon", true, FormDataCollectionExtensions.GetValue<string>(queryStrings, "application") + StringExtensions.EnsureStartsWith(this.TreeAlias, '/') + "/overviewLocation/all"));
    

    The last part is the path to the view file which angular will then request. In the above example it requests the overviewLocation.html.

  • Janaka Lakmal 25 posts 72 karma points
    Feb 11, 2014 @ 15:29
    Janaka Lakmal
    100

    Accidently made this comment as the answer, Can't find a way to undo it.

     

  • 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