Copied to clipboard

Flag this post as spam?

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

  • dev-thandabantu 37 posts 297 karma points
    Aug 11, 2022 @ 12:13

    Point "view" in the package.manifest to a controller

    Hello community,

    I have used a package.manifest to add a custom dashboard to my backoffice following this documentation. I would like to point to a controller from this file. Is this possible? How do I do that?

    I pointed to am .html file without any issues. I have tried replacing the path for the "view" with the path to the controller (as below) and that didn't work. package manifest file

    NB: I want to display content pending approval on my dashboard. If there is a better approach, kindly advise. Thanks!

  • Johannes Lantz 150 posts 830 karma points c-trib
    Aug 11, 2022 @ 16:33
    Johannes Lantz


    You can't point to a controller. I would point it to the html file. Then add a js file which would then make a call to the controller. Something like this:

    angular.module("umbraco").controller("myCustomDashboard.controller", function ($http) {
              //Do stuff


      "dashboards":[ ],
      "javascript": [

    Hope that gets you on the right track!


Please Sign in or register to post replies

Write your reply to: