Copied to clipboard

Flag this post as spam?

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


  • Braydie 148 posts 346 karma points
    Jun 15, 2015 @ 10:42
    Braydie
    0

    Creating dashboards in Umbraco 7

    I've been looking online for some tutorials on how to create a dashboard in v7 but I've come up with nothing.

    I have an UmbracoApiController that will feed me data that I want to display, I just don't know how (or where) to put in an angular controller and html view.

    Any help would be greatly appreciated :)

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jun 15, 2015 @ 13:55
    David Brendel
    0

    Hi Braydie,

    you have to add some code to the dashboard.config which is located in the config folder. In this code snippet you can specify where your HTML file for the dashboard is located.

    In this HTML file you can then do youre angular stuff to fetch and display data from youre API controller.

    Here's a gist: https://gist.github.com/Mantus667/7e7a87341859278639f3

    Hope that helps.

    Regards David

  • Braydie 148 posts 346 karma points
    Jun 15, 2015 @ 14:20
    Braydie
    0

    Hi David,

    Thanks for your reply.

    I understand the dashboard config aspect, it's the front end (js and html) that I'm unclear on - do I need a manifest file for my dashboard? If so, how does it differ to that of a property editor?

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jun 15, 2015 @ 14:37
    David Brendel
    100

    Hi Braydie,

    yes you need a manifest file. It just has to include the JS files with youre controller for the dashboard.

    Sample: https://github.com/Mantus667/GridMaps/blob/master/GridMaps/GridMaps/package.manifest

    With this umbraco picks up the JS files. The HTML files are just stored in a folder.

    So Luke property editor create a folder in app_Plugins, add manifest there and the JS, HTML and CSS files.

    Can't give clearer example right now because I'm in mobile.

    Regards David

  • Braydie 148 posts 346 karma points
    Jun 15, 2015 @ 14:57
    Braydie
    0

    Hi David, I've got it working now!

    I've created a folder under App_Plugins, which contains my js, html and a manifest file.

    Thanks for your help!

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jun 15, 2015 @ 20:31
    David Brendel
    0

    Hi Braydie,

    glad I could help. :)

    Regards David

Please Sign in or register to post replies

Write your reply to:

Draft