I'm using a custom tree to display and create data in the umbraco-backend.
The Root-Node is always the same and has the ID "root".
The Create-Action works for the root-Node and the children are created and displayed.
But I don't know how to register a second create-method that does the same but looks up another Route.
protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
{
var menu = new MenuItemCollection();
if (id.Equals("root") || id.Equals("-1"))
{
menu.Items.Add<CreateChildEntity, ActionNew>(ui.Text("actions", ActionNew.Instance.Alias));
menu.Items.Add<RefreshNode, ActionRefresh>(ui.Text("actions", ActionRefresh.Instance.Alias), true);
}
else
{
menu.Items.Add<ActionDelete>(ui.Text("actions", ActionDelete.Instance.Alias));
}
return menu;
}
This doesnt work as it doesn't open a Dashboard like the CreatChildEntity-Action but shows my angular-code in a modal:
Context Menu for Custom Tree
I'm using a custom tree to display and create data in the umbraco-backend.
The Root-Node is always the same and has the ID "root". The Create-Action works for the root-Node and the children are created and displayed. But I don't know how to register a second create-method that does the same but looks up another Route.
This doesnt work as it doesn't open a Dashboard like the CreatChildEntity-Action but shows my angular-code in a modal:
is working on a reply...