I am trying to add a cshtml page to config. As i need to show list with some custom logic in admin section. But when i add to dashboard.config, it gives me error of authorization access.
I'm don't think you can. Did you read somewhere that this was possible?
Why not use an HTML file? With Angular, you can then run custom logic and render a list of data. You can even make a call to a server-side web API (i.e., one written in C#) if you need to. This is how most dashboards are written.
How to add cshtml pages to dashboard.config
Hi
I am trying to add a cshtml page to config. As i need to show list with some custom logic in admin section. But when i add to dashboard.config, it gives me error of authorization access.
How can i add chstml page to admin section
Thanks
I'm don't think you can. Did you read somewhere that this was possible?
Why not use an HTML file? With Angular, you can then run custom logic and render a list of data. You can even make a call to a server-side web API (i.e., one written in C#) if you need to. This is how most dashboards are written.
Can you please givm me some example code if you have.
Thanks
Here is a tutorial that shows how to do it: https://our.umbraco.org/documentation/Tutorials/Creating-a-Custom-Dashboard/
That page links to this other page that explains how to get data from the server (i.e., by creating a server-side web API): https://our.umbraco.org/documentation/Tutorials/creating-a-property-editor/part-4
is working on a reply...