Hi all I have created anice and well working custom section. Now I need to have a frontpage to one of my trees, and it's where I need help. How can I specify a route for the root of the tree?
GetTreeNodes is not called when the root is clicked, is there another method I need to override?
What does the code for you custom section look like?
Perhaps you can find some useful information by reading this blogpost by Tim Geyssens? http://www.nibble.be/?p=440
You need to get hooked up on angularjs in order to edit your data using views in the backoffice if that is what you have in mind. The Angular Workbook is also a good ressource for that - It has a section about how to create views for a custom tree in the backoffice. https://github.com/umbraco/AngularWorkbook
Jan thanks for the quick answer, I have fully control of AngularJS this is not an issue. I have read the blogpost by Tim Geyssens but there's nothing there on how to have e "fronpage" to a tree.
What I am looking for is the same behaviour as Umbraco's own Settings->Dictionary where a list of keys and country codes are shown.
I can see Umbraco is making some special URL. how can I set this up my self?
I found a similar issue where a custom routing is prefered. I used the same solution but overrided the CreateRootNode method instead. It's very important to note, that the route have to be in the specific format "/Application/TreeAlias/view/id, if id is omitted the route will be in umbraco/views and not in App_Plugins. Here's the Umbraco answer I found:
Aaah, ok - Well seems like you found a way of dealing with it. But otherwise I think that perhaps the Google Analytics for Umbraco project by Warre Buckley and Tim Geyssens are featuring the same thing actually and may be a good reference as well :)
Create root view for custom TreeController
Hi all I have created anice and well working custom section. Now I need to have a frontpage to one of my trees, and it's where I need help. How can I specify a route for the root of the tree?
GetTreeNodes is not called when the root is clicked, is there another method I need to override?
Thanks in advande :)
Hi Dennis
What does the code for you custom section look like?
Perhaps you can find some useful information by reading this blogpost by Tim Geyssens? http://www.nibble.be/?p=440
You need to get hooked up on angularjs in order to edit your data using views in the backoffice if that is what you have in mind. The Angular Workbook is also a good ressource for that - It has a section about how to create views for a custom tree in the backoffice. https://github.com/umbraco/AngularWorkbook
Hope this is what you're looking for.
/Jan
Jan thanks for the quick answer, I have fully control of AngularJS this is not an issue. I have read the blogpost by Tim Geyssens but there's nothing there on how to have e "fronpage" to a tree.
What I am looking for is the same behaviour as Umbraco's own Settings->Dictionary where a list of keys and country codes are shown.
I can see Umbraco is making some special URL. how can I set this up my self?
I found a similar issue where a custom routing is prefered. I used the same solution but overrided the CreateRootNode method instead. It's very important to note, that the route have to be in the specific format "/Application/TreeAlias/view/id, if id is omitted the route will be in umbraco/views and not in App_Plugins. Here's the Umbraco answer I found:
https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/46710-Optional-view-as-opposed-to-edithtml-for-tree-action
Here's how I implemented it:
Hi Dennis
Aaah, ok - Well seems like you found a way of dealing with it. But otherwise I think that perhaps the Google Analytics for Umbraco project by Warre Buckley and Tim Geyssens are featuring the same thing actually and may be a good reference as well :)
/Jan
is working on a reply...