Copied to clipboard

Flag this post as spam?

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


  • ionescu victor 1 post 71 karma points
    Mar 18, 2017 @ 21:33
    ionescu victor
    0

    Left Click Root Node, open dashboard

    I would like to LEFT_CLICK on a umbraco tree node that is in the root in umbraco backoffice.

    However, left_clicking does not do anything.

    enter image description here

     [Umbraco.Web.Trees.Tree("Victoria", "VictoriaSettingsTreeControllerAlias", "Victoria Settings", iconClosed: "icon-umb-settings", iconOpen: "icon-umb-settings")]
    [PluginController("Victoria")]
    public class VictoriaSettingsTreeController : TreeController
    {
        protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
        {           
            TreeNodeCollection nodes = new TreeNodeCollection();
    
            return nodes;
        }
    
        protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
        {
            var menu = new MenuItemCollection();
            menu.Items.Add<ActionUpdate>("Update");
            return menu;
        }
    }
    

    Furthemore, why cannot i change the icon?

    Please remember that i have multiple treeControllers.

    What do i need to add there? I am stumped, i had it working yesterday but once i added multiple TreeController, it stopped working.

    Also is it called "Dashboard" once you left-click a node? Or "Edit area" ?

    Thank you.

  • 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