Copied to clipboard

Flag this post as spam?

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


  • Tom Maton 387 posts 660 karma points
    May 15, 2014 @ 23:21
    Tom Maton
    0

    Got my custom tree working but nothing is appearing in the create section

    Hi All,

    I've managed to get my custom section and tree working but now when I click on the create button nothing is appearing in the list, I've got the create.html page which appears but I just get the following message

    Create a page under {{currentNode.name}}

    This is how I'm currently creating my tree

    protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
            {           
                if (id == Constants.System.Root.ToInvariantString())
                {
                    //Temp items for testing
                    var tree = new TreeNodeCollection
                    {
                        CreateTreeNode("emailTemplates", id, queryStrings, "Email Templates"), 
                        CreateTreeNode("companyRoles", id, queryStrings, "Company Roles"), 
                        CreateTreeNode("rewards", id, queryStrings, "Rewards")
                    };
                    //Return the nodes
                    return tree;
                }
                //this tree doesn't suport rendering more than 1 level
                throw new NotSupportedException();
            }

     

    I cant find anything on how to do this, so any help much appreciated.

    Thanks,

    Tom

  • 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