Problem with menu view display

Monday, November 25, 2024 9:40:16 PM
  • Posted: Monday, July 27, 2020 6:36 PM
  • 14
Hi.

I have a problem with displaying a new view that I implement in a new menu, following the steps https://docs.grandnode.com/how-to-add-your-plugin-to-admin-menu
When I access the new view it sends me to a blank page with the form data, not to the admin and content area.

Attached images.

https://imgur.com/DExfU03
https://imgur.com/qWeUvj0
https://imgur.com/uRf8T4D
0
  • Posted: Tuesday, July 28, 2020 5:53 AM
  • 953
Hi Steven,

It looks that you've forgot to implement the Layouts for view file. You can insert this part of code to your view file with report:
@{
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

or add _AdminLayout.cshtml file to your plugin. It should solve the problem.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, July 28, 2020 10:14 PM
  • 14
Thanks, I solve my problem
0
back to top
Filters