Copied to clipboard

Flag this post as spam?

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


  • Yogeshwer Sharma 10 posts 80 karma points
    Aug 30, 2024 @ 17:14
    Yogeshwer Sharma
    0

    How to add Tabs in custom Dashboard Umbraco 8

    Hi Everyone,

    I have created a custom Dashboard in Umbraco 8 and now I want to add 2 tabs in that custom dashboard but seems I am not able to.

    Does anyone know how to do it ?

    Below is my package.manifest file content -

    {"sections":  [  {
    "name": "Custom",
    "alias": "Custom"  }
    ],
    "dashboards": [
    {
      "alias": "Custom",
      "sections": [ "Custom" ],
      "view": "~/App_Plugins/Custom/Backoffice/Views/report.html"
    }  ],   javascript: [
       '~/App_Plugins/Custom/js/Custom.resource.js',
       '~/App_Plugins/Custom/js/Custom.control.js',
       '~/App_Plugins/Custom/js/smart-table.min.js'],   css: [
        '~/App_Plugins/Custom/css/Custom.css'
    ]} 
    

    Can anyone help if I can achieve this my package.manifest file or is there some other way around

    any help would be highly appreciated

  • Joppe Ruessink 18 posts 168 karma points
    Aug 30, 2024 @ 17:30
    Joppe Ruessink
    0

    Hi Yogeshwer Sharma!

    Im not that known with the package.manifest but I think it sould contain JSON, right?

    I think your package.manifest contains some format errors. I think this way be the reason why your custom tab is not showing up.

    You have added the .js files in the array called javascript however you should declare it as "javascript". This is also the case for css > "css"

    Also the '~/App_Plugins/Custom/js/Custom.resource.js' should be "~/App_Plugins/Custom/js/Custom.resource.js". Single ' only contain CHARS not STRINGS.

    The correct JSON should be:

    {
        "sections": [
            {
                "name": "Custom",
                "alias": "Custom"
            }
        ],
        "dashboards": [
            {
                "alias": "Custom",
                "sections": [
                    "Custom"
                ],
                "view": "~/App_Plugins/Custom/Backoffice/Views/report.html"
            }
        ],
        "javascript": [
            "~/App_Plugins/Custom/js/Custom.resource.js",
            "~/App_Plugins/Custom/js/Custom.control.js",
            "~/App_Plugins/Custom/js/smart-table.min.js"
        ],
        "css": [
            "~/App_Plugins/Custom/css/Custom.css"
        ]
    }
    

    Let me know if this fixes the problem.

    Greetings, Joppe

  • Yogeshwer Sharma 10 posts 80 karma points
    Sep 02, 2024 @ 06:18
    Yogeshwer Sharma
    0

    Thanks Joppe,

    But my concern is not about showing the custom dashboard or json format my concern is about how I can show Tabs in Umbraco 8 in custom dashboard?

Please Sign in or register to post replies

Write your reply to:

Draft