Gets view paths to load in dynamically based on whether a core or plugin tree is rendering, this allows us to store view files based on conventions for packages. Completes: U4-2849 Ensure editor views, etc... can exist outside of the /umbraco folder for package devs
This commit is contained in:
@@ -30,9 +30,11 @@ namespace Umbraco.Web.UI.App_Plugins.MyPackage.Trees
|
||||
}
|
||||
|
||||
protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
|
||||
{
|
||||
MenuItems.AddMenuItem(new MenuItem("create", "Create"));
|
||||
return MenuItems;
|
||||
{
|
||||
var menu = new MenuItemCollection();
|
||||
|
||||
menu.AddMenuItem(new MenuItem("create", "Create"));
|
||||
return menu;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user