Copied to clipboard

Flag this post as spam?

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


  • Manish 373 posts 932 karma points
    Jul 10, 2017 @ 13:39
    Manish
    0

    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

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 10, 2017 @ 15:39
    Nicholas Westby
    2

    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.

  • Manish 373 posts 932 karma points
    Jul 27, 2017 @ 13:15
    Manish
    0

    Can you please givm me some example code if you have.

    Thanks

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 27, 2017 @ 15:14
    Nicholas Westby
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft