I am new to umbraco. I am trying to create MVC application which requires creating custom section/tree in umbraco and on clicking tree node , redirects to custom route.
I have successfully created custom tree using TreeController. I am creating razor views which are stored in ~/Views/ folder. What I want is when user clicks on tree node , it loads the ~/views/(some .cshtml file) in content frame.
Currently when i define the custom route in "createTreeNode" function as "/ControllerName/Action/" , umbraco creates the route as "umbraco#/controllerName/Action/" which is inaccessible.
not quite sure if it is possible at all to use razor views for this.
The URL looks like this as umbraco does the routing by angular. So the normal way is to use plain HTML views with angular to setup your views for the custom section you are creating.
Redirect to custom route via custom tree
Hi
I am new to umbraco. I am trying to create MVC application which requires creating custom section/tree in umbraco and on clicking tree node , redirects to custom route.
I have successfully created custom tree using TreeController. I am creating razor views which are stored in ~/Views/ folder. What I want is when user clicks on tree node , it loads the ~/views/(some .cshtml file) in content frame.
Currently when i define the custom route in "createTreeNode" function as "/ControllerName/Action/" , umbraco creates the route as "umbraco#/controllerName/Action/" which is inaccessible.
I am stuck here.
Thanks
Agreed, I am trying to do the same
Hi,
not quite sure if it is possible at all to use razor views for this.
The URL looks like this as umbraco does the routing by angular. So the normal way is to use plain HTML views with angular to setup your views for the custom section you are creating.
Regards David
is working on a reply...
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.