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
In Umbraco 7 I could do:
GetNode("2", "myNode", "My node name", "Cats", "Favourite")
where the 4th parameter was controller name and the 5th - action name
In Umbraco 10 I am trying to add a custom route in TreeController:
TreeController
string routePath = $"umbraco/backoffice/Cats/{rootNode.Id}"; var node = CreateTreeNode(rootNode.Id, parentId, queryStrings, rootNode.Title, rootNode.Icon, rootNode.HasChildren, routePath);
but it still seems to be trying to fetch html angularjs view - in this case:
angularjs
views/backoffice/cats.html
The documentation does not say anything about it: https://docs.umbraco.com/v/10.x-lts/umbraco-cms/extending/section-trees/trees
Is there a way to route custom section tree nodes via MVC pattern controller/ action or I really need to use angularjs in order to display my section views?
Hi did you ever figure out a solution to this problem? I'm looking to do something very similar and I could use a push in the right direction
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to route TreeController nodes to MVC controller/action?
In Umbraco 7 I could do:
where the 4th parameter was controller name and the 5th - action name
In Umbraco 10 I am trying to add a custom route in
TreeController
:but it still seems to be trying to fetch html
angularjs
view - in this case:The documentation does not say anything about it: https://docs.umbraco.com/v/10.x-lts/umbraco-cms/extending/section-trees/trees
Is there a way to route custom section tree nodes via MVC pattern controller/ action or I really need to use
angularjs
in order to display my section views?Hi did you ever figure out a solution to this problem? I'm looking to do something very similar and I could use a push in the right direction
is working on a reply...