Copied to clipboard

Flag this post as spam?

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


  • Dominic Tse 21 posts 110 karma points
    May 25, 2017 @ 23:08
    Dominic Tse
    0

    Create a new Dashboard item in Umbraco backoffice via Dashboard.config and applications.config

    I am trying to create a new item on the left hand side in Umbraco backoffice main dashboard via Dashboard.config and applications.config. I don't know why the new item doesn't appear on the dashboard.

    enter image description here

    I've added

    Dashboard.config

      <section alias="StartupXxxDashboardSection">
        <areas>
          <area>xxx</area>
        </areas>
        <tab caption="xxx">
          <control>
            /umbraco/backoffice/xxx/abc
          </control>
        </tab>   
      </section>
    

    applications.config

    <?xml version="1.0" encoding="utf-8"?>
    <applications>
      <add alias="content" name="Content" icon="traycontent" sortOrder="0" />
      <add alias="media" name="Media" icon="traymedia" sortOrder="1" />
      <add alias="settings" name="Settings" icon="traysettings" sortOrder="2" />
      <add alias="developer" name="Developer" icon="traydeveloper" sortOrder="3" />
      <add alias="users" name="Users" icon="trayuser" sortOrder="4" />
      <add alias="member" name="Members" icon="traymember" sortOrder="5" />
      <add alias="forms" name="Forms" icon="icon-umb-contour" sortOrder="6" />
      <add alias="translation" name="Translation" icon="traytranslation" sortOrder="7" />
      <add alias="xxx" name="Xxx" icon="traymedia" sortOrder="8" />
    </applications>
    

    Added the following in area alias="sections" in en.xml

    <key alias="xxx">Xxx</key>
    

    Is there anything missing that prevents the new XXX item appear on the Dashboard?

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    May 26, 2017 @ 08:53
    David Brendel
    100

    Hi Dominic,

    it should look like this in application.config:

    <add alias="demoPackage" name="DemoPackage" icon="icon-calendar-alt" sortOrder="8" />
    

    In dashboard.config:

    <section alias="DemoPackageSection">
        <areas>
          <area>demoPackage</area>
        </areas>
        <tab caption="DemoPackageDashboard">
          <control addPanel="true" panelCaption="">/App_Plugins/DemoPackage/backoffice/dashboard.html</control>
        </tab>
      </section>
    

    Then you also have to set access rights for the new section to the user. So edit your user and there you can set which sections it has access to. Then refresh the website and it should appear.

    Regards David

  • Dominic Tse 21 posts 110 karma points
    May 28, 2017 @ 23:50
    Dominic Tse
    0

    Then you also have to set access rights for the new section to the user. So edit your user and there you can set which sections it has access to. Then refresh the website and it should appear.

    I forgot to grant access rights for the new section to the user.

Please Sign in or register to post replies

Write your reply to:

Draft