Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have got a custom tree and custom section all working in Umbraco 7.
In my tree I have a menu Item that allows the user to delete a node. I have set up my view and controller and I am able to delete the nodes.
This is how I generate the delete menu Item
menuItemCollection.Items.Add<ActionDelete>("Delete")
When the user clicks on it the delete view is displayed as a slide out.
By default umbraco looks for the delete view here:
backoffice/treeName/delete.html
How do I specify the path to my html file so I am not using the default one?
I have tried this:
menuItemCollection.Items.Add<ActionDelete>("Delete").NavigateToRoute("/my/path/file.html/");
This works... but the view does not slight out from the side.
How can I have it work exactly the way it works now but just specify my path to my html view?
I found the solution experimenting using intelesense:
For anyone else...
menuItemCollection.Items.Add<ActionDelete>("Delete").LaunchDialogView("/app_plugins/yourPath.html", "Are you sure?");
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
IAction- How to specify how you display views from a custom menu, custom section
I have got a custom tree and custom section all working in Umbraco 7.
In my tree I have a menu Item that allows the user to delete a node. I have set up my view and controller and I am able to delete the nodes.
This is how I generate the delete menu Item
When the user clicks on it the delete view is displayed as a slide out.
By default umbraco looks for the delete view here:
How do I specify the path to my html file so I am not using the default one?
I have tried this:
This works... but the view does not slight out from the side.
How can I have it work exactly the way it works now but just specify my path to my html view?
I found the solution experimenting using intelesense:
For anyone else...
is working on a reply...