Copied to clipboard

Flag this post as spam?

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


  • Ross Ekberg 131 posts 382 karma points
    May 24, 2023 @ 20:47
    Ross Ekberg
    0

    Umbraco 10 New Custom Section and Dashboard Issue

    I'm using Umbraco 10.4.2

    I am attempting to create a new section in the backoffice with a custom dashboard. I am able to create the section just fine. I have given myself permission to see it and it shows up across the top with the other sections. However, I can't get the dashboard to display. I get a 404 error.

    All files are located within /App_Plugins/WebSubscriptions. The dashboard file itself just contains "hello world". Whenever I click on the section, Umbraco displays a red toast with a 404 error. I tried altering the proj file to contains this:

      <ItemGroup>
        <Content Include="App_Plugins\**">
            <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        </Content>
      </ItemGroup>
    

    It had no effect.

    Here is the package.manifest file:

        {
      "sections": [
        {
          "alias": "WebSubscriptions",
          "name": "Web Subscriptions"
        }
      ],
      "dashboards": [
        {
          "alias": "Web Subscriptions",
          "sections": [ "WebSubscriptions" ],
          "view": "/App_Plugins/WebSubscriptions/dashboard.cshtml"
        }
      ]
    }
    

    I continue to get a 404 error. I have tried adding a tilde, removing the first forward slash, nothing changes. It may be worth noting that I had to create the App_Plugins folder. Obviously the manifest file is being picked, as well as the lang file (no brackets). But it doesn't seem to want to pick up the view file. I have tried both html and cshtml. No difference.

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    May 25, 2023 @ 07:52
    Marc Goodson
    0

    Hi Ross

    First immediate thought, might not be this, but just glancing at tickets while waiting for the day to kick off...

    Should the alias for the dashboard have a space in?

    and if you take the space out, make sure it's a different alias from the section alias...

    regards

    Marc

  • 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