It is not possible. You don't have to use Angular, your dashboard could be just html. But if you need Umbraco services(witch you probably do) you have to go with Angular in order to use the services you need.
If you need a boilerplate for creating a dashboard with Angular, then take a look at the modelsbuilder dashboard. You can find it in your Umbraco install -> /App_Plugins/ModelsBuilder/...
On your html dashboard, you can place a link for your API controller (like /umbraco/backoffice/yourapi/export).
You don't need to use Angular for this, except if you need some kind of configuration for your export (and even then, you could still just create a <form> in your html, posting that one to your controller.
I don't think a property editor is the way to go. Property editors are meant for editing content.
And you have to use angular for that. And that is something you didn't want if I read your original post
I thought that the iframe solution is not a good one, as it will need a source URL and I wouldn't want to have the export feature accessible from a browser.
The iframe code needs a "src" link, which should be linking to an existing page, which means that this page, holding the export feature could be accessed from a web browser, too (and that I would like to avoid).
Custom dashboard
Hi,
Could anybody advise me if it's possible to add a custom dashboard into Umbraco8 using Razor or Web User Control instead of AngularJS?
Thanks!
It is not possible. You don't have to use Angular, your dashboard could be just html. But if you need Umbraco services(witch you probably do) you have to go with Angular in order to use the services you need.
If you need a boilerplate for creating a dashboard with Angular, then take a look at the modelsbuilder dashboard. You can find it in your Umbraco install ->
/App_Plugins/ModelsBuilder/...
Hi kometa,
Here you can find a tutorial on how to add a dashboard : https://our.umbraco.com/documentation/Extending/Dashboards/
I don't know what you want to show. But a dashboard that shows a iframe could be a option.
Dave
Thank you for your suggestions.
To this new dashboard I need a feature to export data to a .csv file from a custom database table. I'm afraid the iframe solution won't be good :-(
It seems like my only option is to follow this quide https://our.umbraco.com/documentation/Tutorials/Creating-a-Property-Editor/part-4 but if anyone has a better solution, please advise.
Thanks!
Hi Kometa
Basically what you need is the following:
On your html dashboard, you can place a link for your API controller (like /umbraco/backoffice/yourapi/export).
You don't need to use Angular for this, except if you need some kind of configuration for your export (and even then, you could still just create a
<form>
in your html, posting that one to your controller.Thanks Søren! I think, I will go with your suggestion.
I don't think a property editor is the way to go. Property editors are meant for editing content. And you have to use angular for that. And that is something you didn't want if I read your original post
Why is a iframe not an option ?
Dave
Hi Dave,
I thought that the iframe solution is not a good one, as it will need a source URL and I wouldn't want to have the export feature accessible from a browser.
Why you think the iframe solution is not a good one. If you want to use a razor view or webforms this is the only option.
And what you mean with it needs a source url ?
Dave
Hi Dave,
The iframe code needs a "src" link, which should be linking to an existing page, which means that this page, holding the export feature could be accessed from a web browser, too (and that I would like to avoid).
Please correct me if I'm wrong.
Thanks!
Hi Kometa,
You can create a custom dashboard using MVC and Partial Views. Here are the starting pieces you will need to do it.
You will need to create you dashboard under the App_Plugins folder. Mine is called zpmConfig
1. You will need a Controller
2. You will need a Starting View (zLayout.cshtml)
3. In the root folder of your project, create a file named package.manifest
4. When you first Login to the Umbraco backoffice, the new section will not be available to you. Go to Users and assign the permissions to use it.
5. Logout, close the browser and then log back into the Umbraco BackOffice. Your new dashboard should be available to you.
is working on a reply...