I'm adding a tree to a custom section, and want to route the root node to a view (similar to how it works in the content tree). How can I get this working?
It's easy enough to route child nodes to particular views, but can't find anything for the root node.
I've tried overriding the CreateRootNode method, but SectionRootNode() has no constructors defined, so that's not working.
View routing for custom tree root node
I'm adding a tree to a custom section, and want to route the root node to a view (similar to how it works in the content tree). How can I get this working?
It's easy enough to route child nodes to particular views, but can't find anything for the root node.
I've tried overriding the CreateRootNode method, but SectionRootNode() has no constructors defined, so that's not working.
Any suggestions?
Realised I was looking in the wrong place - need to do it by hooking into the TreeControllerBase.RootNodeRendering event.
is working on a reply...