Copied to clipboard

Flag this post as spam?

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


  • Filur 20 posts 154 karma points
    Mar 21, 2017 @ 11:08
    Filur
    0

    Default view for custom application

    I have created a custom section in the Umbraco backoffice. It currently has two nodes/menu items, which I have mapped with their corresponding views in their TreeController. So far so good.

    My question is, where do I place the view for the landing page of my custom application? It's currently blank.

    My folder structure looks something like this:

    -App_Plugins
        -MySection
            -backoffice
                 -MySectionTree
                 -node1.html
                 -node2.html
    

    I have tried adding a view.html on the same level - without success. Any ideas?

  • Michaël Vanbrabandt 863 posts 3343 karma points c-trib
    Mar 22, 2017 @ 07:52
    Michaël Vanbrabandt
    100

    Hi Filur,

    to add a starting view for your custom section you need to alter the dashboard.Config file and add your new section here:

    <section alias="MySection">
        <areas>
          <area>mySection</area>
        </areas>
        <tab caption="Dashboard">
          <control addPanel="true" panelCaption="">/app_plugins/mysection/backoffice/dashboard.html</control>
        </tab>
      </section>
    

    Where the file ~/App_Plugins/MySection/backoffice/dashboard.html is your landing page.

    Hope this helps!

    /Michaël

  • Filur 20 posts 154 karma points
    Mar 22, 2017 @ 12:03
    Filur
    1

    Thanks Michaël Vanbrabandt - works like a charm!

  • Michaël Vanbrabandt 863 posts 3343 karma points c-trib
    Mar 22, 2017 @ 12:10
    Michaël Vanbrabandt
    0

    No problem, glad that it solved your problem!

    Enjoy the rest of your day!

    /Michaël

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies