Copied to clipboard

Flag this post as spam?

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


  • Aung Zin Phyo 17 posts 87 karma points
    Jan 10, 2020 @ 03:50
    Aung Zin Phyo
    0

    How to add cshtml pages to dashboard.config Custom Section

    Backoffice Sections and Razor

    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

  • Thomsen 112 posts 335 karma points
    Mar 31, 2020 @ 22:11
    Thomsen
    0

    Hi Aung, did you find a solution to this?

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Apr 02, 2020 @ 14:49
    David Brendel
    0

    Hi Thomsen,

    the backoffice ist build with AngularJs (If you're in v7 or V8). There is no way of adding cshtml views to the backoffice. There is documentation for extending the backoffice. I suggest having a look at that If you want to extend the backoffice. Keep in mind there where changes in V8. So no dashboard config anymore.

    Regards David

  • Damien Holley 179 posts 540 karma points
    Apr 14, 2021 @ 23:12
    Damien Holley
    0

    Hi actually you can do this using js in the dashboard.

    Use it to hit your controller which can return a partial view. So you can then use the JQ to paste in the partial result into a div.

Please Sign in or register to post replies

Write your reply to:

Draft