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 792 posts 2970 karma points MVP 3x 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.

     

Please Sign in or register to post replies

Write your reply to:

Draft