Copied to clipboard

Flag this post as spam?

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


  • Jay Crowe 42 posts 173 karma points
    Jun 07, 2018 @ 13:21
    Jay Crowe
    0

    New backend section

    Hi,

    I was just wondering if someone could point me in the right direction with regards the best way to set up a new section in the backend? I have created a separate angular web application and I would like to create a new section in the backend and have the new angular displayed when I click the new section?

    I would also like to lock this section down so that only certain members have access.

    Thanks, Jay

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Jun 07, 2018 @ 13:46
  • Jay Crowe 42 posts 173 karma points
    Jun 07, 2018 @ 19:13
    Jay Crowe
    0

    So you need to create some sort of controller to manage the new section? I thought I would be able to manage this through config files and display the angular app?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jun 07, 2018 @ 19:27
    Dan Diplo
    0

    Maybe have a look through the Extending documentation - https://our.umbraco.org/documentation/Extending/

    If you want stuff in the Umbraco back-end (when you log in) then either a dashboard or custom tree would work.

    You mention members - do you mean back-end users? (Members in Umbraco means front end-users, and these don't have access to Umbraco admin).

  • Jay Crowe 42 posts 173 karma points
    Jun 07, 2018 @ 20:11
    Jay Crowe
    0

    Thanks Dan Diplo. That link made much more sense and now I have a new section. The only problem I have now is that it is not picking up my package.manifest and therefore it can't find my js files or css files. Its also not picking up my Lang folder with the en-GB.xml file in there so the Section title doesnt show properly and shows the alias in the square brackets?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jun 07, 2018 @ 20:27
    Dan Diplo
    0

    Common problems are you have named something wrong or have a syntax error in your package.manifest (it has to be valid JSON). Check browser console for any errors. Make sure web.config is in debug mode, too, as it prevents caching issues.

    I can provide an example from one of my packages that might be useful to compare to:

    https://github.com/DanDiplo/Diplo.DictionaryEditor/tree/master/PropertyEditor/App_Plugins/DiploDictionaryEdit

    Ensure names match your Tree Controller:

    https://github.com/DanDiplo/Diplo.DictionaryEditor/blob/master/Diplo.Dictionary/Sections/EditorTreeController.cs

  • Jay Crowe 42 posts 173 karma points
    Jun 07, 2018 @ 20:40
    Jay Crowe
    0

    My package.manifest looks like this:

    { "javascript": [ "~/AppPlugins/SlaterBartonMembersArea/App/js/bundle.js" ], "css": [ "~/AppPlugins/SlaterBartonMembersArea/App/css/main.css" ] }

    But when I open the developer tools in chrome its trying to look for my files in /umbraco/css/main.css and /umbraco/js/bundle.js?

    Also I dont have a tree in my section. I have set up the section which now shows and I have one tab where I am trying to load a custom angular app I have written outside of Umbraco in a separate Web App Project

Please Sign in or register to post replies

Write your reply to:

Draft