I've working on a custom section and tree. I want to have each menu item in tree load a specific page in the backoffice however when i set the routepath of the treenode item it tries to load the page from the /views folder and of course it wont be there. The page i want to load is in the /App_Plugins/MySection/backoffice/MyTree/ folder.
There are a few tutorials on section tress and thats all good. But I'm struggling to find anything on creating specific backoffice pages and how to get the menu to request those specific pages.
I managed to figure this out recently. The way I got it working was setting the route so the first two segments of the route match your section name, the third segment matches the view (html) file to load and the fourth, the id has to be present but you can just set this to -1.
So if you have the following route set, /mySection/mySection/somePage/-1, this will point to the view file at /App_Plugins/MySection/BackOffice/MySection/somePage.html
backoffice pages for custom section
Hi
I've working on a custom section and tree. I want to have each menu item in tree load a specific page in the backoffice however when i set the routepath of the treenode item it tries to load the page from the /views folder and of course it wont be there. The page i want to load is in the /App_Plugins/MySection/backoffice/MyTree/ folder.
There are a few tutorials on section tress and thats all good. But I'm struggling to find anything on creating specific backoffice pages and how to get the menu to request those specific pages.
Thanks.
Hi Sean,
Have you seen this documentation https://our.umbraco.org/documentation/extending/section-trees/trees-v7
Hope this helps,
/Dennis
@Dennis
Yes I have and no, unfortunately it doesn't.
Hi Sean,
Perhaps this blogpost from Tim Geyssens can help you if you havenĀ“t already seen this too. http://www.nibble.be/?p=440
Else maybe Dave Woestenborghs video from UK festival can help you about how to build a custom section https://goo.gl/18bqpn and also this https://bitbucket.org/dawoe/umbukfestival2014/overview or https://bitbucket.org/dawoe/duugcustomsections
Hope this helps,
/Dennis
@Dennis
I've been all over that first link like a rash, unfortunately it doesnt go that extra step.
I've seen the others, but thanks, i'll check them out.
Hi Sean,
I managed to figure this out recently. The way I got it working was setting the route so the first two segments of the route match your section name, the third segment matches the view (html) file to load and the fourth, the id has to be present but you can just set this to -1.
So if you have the following route set, /mySection/mySection/somePage/-1, this will point to the view file at /App_Plugins/MySection/BackOffice/MySection/somePage.html
I hope this helps.
Dave
@David
Thanks. Omitting the /backoffice/ part fixed my issue.
is working on a reply...