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.
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.
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?
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 :)
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
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?
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
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!
Hi Braydie,
glad I could help. :)
Regards David
is working on a reply...