Custom Menu Item override route not using the umbraco/view/route
This is very frustrating. So I'm trying to build a menu item, but I don't want that dumb slide out window. I need it to redirect to a new page. Which you can do using NavigateToRoute, however that stupid method adds "umbraco/views/" then cuts off the first part of my string I put in there as well.
For Example
var build = new MenuItem("Build", "Build");
build.NavigateToRoute("/MySection/MySectionTree/Build");
menu.Items.Add(build);
The above will navigate to "/umbraco/views/MySectionTree/Build"
That doesn't even make sense to me why it cuts off the first part. I need it to go to "umbraco/MySection/MySectionTree/Build"
How does this method even work and has anyone got it to work properly.
It gets the proper url if i comment out the navigateToRoute, but it goes in a slideout window. Any way to override that?
Custom Menu Item override route not using the umbraco/view/route
This is very frustrating. So I'm trying to build a menu item, but I don't want that dumb slide out window. I need it to redirect to a new page. Which you can do using NavigateToRoute, however that stupid method adds "umbraco/views/" then cuts off the first part of my string I put in there as well.
For Example
The above will navigate to "/umbraco/views/MySectionTree/Build"
That doesn't even make sense to me why it cuts off the first part. I need it to go to "umbraco/MySection/MySectionTree/Build"
How does this method even work and has anyone got it to work properly.
It gets the proper url if i comment out the navigateToRoute, but it goes in a slideout window. Any way to override that?
Thanks
I'm in exactly the same boat. Just a reply so i can follow the topic (and update if and when i find an answer...)
at least I am not the only one.
The solution is: NavigateToRoute(string route) function. This onClick will open the route on a new window.
Remember the route is composed by: /{PluginName}/{TreeAlias}/{MenuItemAlias}/{id}
is working on a reply...