Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 304 posts 650 karma points
    Jun 24, 2014 @ 22:32
    Paul Sørensen
    0

    Controlling the route in Custom sections v7

    Hi

    I have a multi level custom tree where I need to call different edit and create view depending on tree level

    if (id == Constants.System.Root.ToInvariantString())
    {
        var tree = new TreeNodeCollection();
        var controller = new CourseTreeController();
        var route = string.Format("App_Plugin/msBackend/CourseTree/club");
        foreach (var club in query)
        {
            var node = this.CreateTreeNode(string.Format("club-{0}", club.Id), 
                id, queryStrings, club.Name, "icon-store"true, route);
            tree.Add(node);
        }
        return tree;
    }

    The route does not do the job so how can this be achieved?

    /Paul S

     

  • 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