Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sean 9 posts 49 karma points
    Sep 08, 2015 @ 11:56
    Sean
    0

    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.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Sep 08, 2015 @ 12:00
    Dennis Aaen
    0

    Hi Sean,

    Have you seen this documentation https://our.umbraco.org/documentation/extending/section-trees/trees-v7

    Hope this helps,

    /Dennis

  • Sean 9 posts 49 karma points
    Sep 08, 2015 @ 12:04
    Sean
    0

    @Dennis

    Yes I have and no, unfortunately it doesn't.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Sep 08, 2015 @ 12:34
    Dennis Aaen
    0

    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

  • Sean 9 posts 49 karma points
    Sep 08, 2015 @ 13:02
    Sean
    0

    @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.

  • David Parr 48 posts 206 karma points
    Sep 08, 2015 @ 12:40
    David Parr
    100

    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

  • Sean 9 posts 49 karma points
    Sep 09, 2015 @ 06:34
    Sean
    0

    @David

    Thanks. Omitting the /backoffice/ part fixed my issue.

Please Sign in or register to post replies

Write your reply to:

Draft